View Full Version : Extracting zip.exe
Bruce
01-08-2003, 04:23 PM
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?
Lorne
01-09-2003, 08:18 AM
Why not just re-zip the thing as a regular, not self-extracting zip file?
Bruce
01-09-2003, 09:22 AM
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.
Lorne
01-09-2003, 09:49 AM
So just delete the files with AutoPlay actions.
Bruce
01-09-2003, 09:52 AM
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.
Bruce
01-09-2003, 10:04 AM
Perhapes If I use the File/Execute action and then in the Command Line argiments pass along the password? Hummmm.
Lorne
01-09-2003, 10:18 AM
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.
Bruce
01-09-2003, 10:31 AM
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]
TJ_Tigger
01-09-2003, 10:51 AM
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>
Bruce
01-09-2003, 11:47 AM
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!
Option_Explicit
01-10-2003, 12:38 PM
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.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.