Announcement

Collapse
No announcement yet.

Extracting zip.exe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extracting zip.exe

    Hello, hello!
    I'm trying to open a self-extracting zip file that will start up a setup.exe. Now... this zip file has a password. If I attempt to open it out side of AMS it works fine, but within AMS using the Zip File/Extract, it will not work. Now if I use the File/Execute it will work, but stops and asks the end user for the password. I want to have AMS apply the password, extract it and start the executable. Anyone know what I'm missing?

  • #2
    Re: Extracting zip.exe

    Why not just re-zip the thing as a regular, not self-extracting zip file?
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Extracting zip.exe

      Hello Lorne!
      Because I want the zipped file to destroy it's self after completing its task. A regular Zip file stores to a Temp file where it stays. Exactly what I don't want it to do. A self-extracting Zip will do the same thing but, delete its own files after it finishes its required tasks.

      Comment


      • #4
        Re: Extracting zip.exe

        So just delete the files with AutoPlay actions.
        --[[ Indigo Rose Software Developer ]]

        Comment


        • #5
          Re: Extracting zip.exe

          Forgive me for being thick headed...How would I do that? What am I thinking! I don't want the end user to be able to explore the CD and unzip the zip files.

          Comment


          • #6
            Re: Extracting zip.exe

            Perhapes If I use the File/Execute action and then in the Command Line argiments pass along the password? Hummmm.

            Comment


            • #7
              Re: Extracting zip.exe

              Make regular password-protected zip files. Use the Zip action to extract the files (and supply the password). Then, use a File.Execute action to run the setup.exe.

              Once you're done with the extracted files, use the File.Delete action to remove them.

              Bruce...take a few deep breaths, sit back, and think about it.
              --[[ Indigo Rose Software Developer ]]

              Comment


              • #8
                Re: Extracting zip.exe

                LOL you sound like my best friend Tony! You guys are amazing. Thanks for you sincere support. Ok... this is what I get for doing three things at one time. [shaking head]

                Comment


                • #9
                  Re: Extracting zip.exe

                  Bruce,

                  Here is what I did for extracting a file to the temp dir and passing a password from AMS to the zip file. Then on close and destroy to delete those files

                  <IR_ACTIONS_LIST>
                  <Action name="Set Value">
                  <Type>6</Type>
                  <Function>0</Function>
                  <DTIndentLevel>2</DTIndentLevel>
                  <Enabled>1</Enabled>
                  <ErrorHandling>
                  <UserNotificationMode>2</UserNotificationMode>
                  <CustomErrorMessage/>
                  <OnErrorAction>0</OnErrorAction>
                  <JumpToLabel/>
                  </ErrorHandling>
                  <Variable>%ZipPW%</Variable>
                  <Value>password</Value>
                  <Evaluate>0</Evaluate>
                  </Action>
                  <Action name="Extract">
                  <Type>131</Type>
                  <Function>0</Function>
                  <DTIndentLevel>2</DTIndentLevel>
                  <Enabled>1</Enabled>
                  <ErrorHandling>
                  <UserNotificationMode>2</UserNotificationMode>
                  <CustomErrorMessage/>
                  <OnErrorAction>0</OnErrorAction>
                  <JumpToLabel/>
                  </ErrorHandling>
                  <ZipFileName>%SrcDir%\QuickTime\P7051636.exe</ZipFileName>
                  <FilesToExtract>*.*</FilesToExtract>
                  <Delimiter/>
                  <UnzipToFolder>%TempDir%</UnzipToFolder>
                  <RecurseSubDirs>1</RecurseSubDirs>
                  <UseInternalDirs>1</UseInternalDirs>
                  <UsePassword>1</UsePassword>
                  <Password>%ZipPW%</Password>
                  <OverwriteOptions>2</OverwriteOptions>
                  <ShowDialog>0</ShowDialog>
                  <DialogTitle>Unzipping Files</DialogTitle>
                  </Action>
                  <Action name="Open">
                  <Type>7</Type>
                  <Function>0</Function>
                  <DTIndentLevel>2</DTIndentLevel>
                  <Enabled>1</Enabled>
                  <ErrorHandling>
                  <UserNotificationMode>2</UserNotificationMode>
                  <CustomErrorMessage/>
                  <OnErrorAction>0</OnErrorAction>
                  <JumpToLabel/>
                  </ErrorHandling>
                  <FileName>%TempDir%\P7051636.MOV</FileName>
                  <Verb>open</Verb>
                  <WorkingDir/>
                  <RunMode>0</RunMode>
                  </Action>
                  </IR_ACTIONS_LIST>


                  Then on Delete or Close of the page

                  <IR_ACTIONS_LIST>
                  <Action name="Delete">
                  <Type>26</Type>
                  <Function>0</Function>
                  <DTIndentLevel>0</DTIndentLevel>
                  <Enabled>1</Enabled>
                  <ErrorHandling>
                  <UserNotificationMode>0</UserNotificationMode>
                  <CustomErrorMessage/>
                  <OnErrorAction>0</OnErrorAction>
                  <JumpToLabel/>
                  </ErrorHandling>
                  <Source>%TempDir%\P7051636.MOV</Source>
                  <RecurseSubdirectories>0</RecurseSubdirectories>
                  <ContinueAfterFail>0</ContinueAfterFail>
                  <DeleteHiddenSystem>0</DeleteHiddenSystem>
                  <DialogTitle>Deleting Files</DialogTitle>
                  <DialogText>This Process will remove the movie from your Systems Temp Directory.</DialogText>
                  </Action>
                  </IR_ACTIONS_LIST>
                  TJ-Tigger
                  "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                  "Draco dormiens nunquam titillandus."
                  Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                  Comment


                  • #10
                    Re: Extracting zip.exe

                    Hey Tig-
                    I can't seem to make it delete the files. B.T.W. i'm opening an .exe if that matters... OK, I got it. On page exit delete *.* files THEN delete folder...phewwww Thx everyone!

                    Comment


                    • #11
                      Re: Extracting zip.exe

                      I use the same type of function on my CD
                      you could make a Deltree.batch file and copy it to the Temp Dir with the Zip then set a registry value in the RunOnce to run the .bat on reboot, if AMS closes before you shut the setup program down, it wont delete everything. but on reboot..everything goes.

                      Comment

                      Working...
                      X