PDA

View Full Version : Winzip



Bruce
01-20-2003, 12:43 PM
Here's one for ya!
I have a zip file that refuses to unzip and add a folder containing .dll files into a temp file. This file is created when a button is clicked (within AMS). Now if I unzip the files outside of AMS the folder is unzipped and added as it should be. Very odd...Any one?

Lorne
01-21-2003, 03:04 PM
(Need more info.)

Bruce
01-22-2003, 01:32 PM
Hummm What more can I tell?

Darryl
01-22-2003, 03:07 PM
What are the exact settings that you have used in your Zip File Extract action?

What version of Winzip was it created with?

Do you receive any error messages when the action is launched? Also make sure the error notification is turned on.

Bruce
01-23-2003, 10:36 PM
Well...I'm finding that it's a zip thing and not an AMS thing. WinZip will NOT allow a folder that has two folders each containing a setup.dll to be uncompressed into a temp file. Apparently the setup.dll files are dropped into the temp folder before the appropriate folders are created to house and separate the two setup.dlls. Which of course you can't have two of the same file in the same folder at the same time. LOL POOP!

Any one?

B.T.W I'm using WinZip 8.1

Corey
01-23-2003, 11:12 PM
Bruce I have no problem over here creating a zip file which contains two folders each containing a file named "setup.dll" and then unzipping it.

I used Winrar 2.9.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Bruce
01-23-2003, 11:46 PM
I'll give that a try! Thx Corey

Corey
01-24-2003, 12:48 AM
np

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Bruce
01-24-2003, 09:50 AM
This is not working! Corey, could you please send me your .rar file so I could try it here? Thx buddy!
Here's what I have:
<IR_ACTIONS_LIST>
<Action name="Set Value">
<Type>6</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>0</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%ZipPW%</Variable>
<Value>nkjh898uyGTfreDCjn76581245Rfrew</Value>
<Evaluate>0</Evaluate>
</Action>
<Action name="Extract">
<Type>131</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>1</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<ZipFileName>%SrcDir%\myfile.zip</ZipFileName>
<FilesToExtract>*.*</FilesToExtract>
<Delimiter/>
<UnzipToFolder>C:\temp</UnzipToFolder>
<RecurseSubDirs>0</RecurseSubDirs>
<UseInternalDirs>0</UseInternalDirs>
<UsePassword>1</UsePassword>
<Password>%ZipPW%</Password>
<OverwriteOptions>2</OverwriteOptions>
<ShowDialog>1</ShowDialog>
<DialogTitle>Unzipping Files</DialogTitle>
</Action>
<Action name="Open">
<Type>7</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>0</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SrcDir%\myfile.exe</FileName>
<Verb>open</Verb>
<WorkingDir/>
<RunMode>0</RunMode>
</Action>
</IR_ACTIONS_LIST>


I don't know wat the prob. is...[scraching head]

TJ_Tigger
01-24-2003, 05:07 PM
Does your Zip have folders within the Zip file? If it does, you may want to check the "Recurse subfolders" options and maybe even the "Use internal zip folder names" option. Since you are using a wildcard to define what is being extracted the recurse option will search through folders in the zip. And the other option will use those foldernames when extracting the files to the temp directory.

I also see that you have the unzip location set to C:\temp. You can use %TempDir% as a built in variable to unzip those files to the users temporary directory, which may differe from Windows machine to Windows machine.

The File.Open option, are you trying to open a file on the CD or a file that you have extracted?

TJ-Tigger

Bruce
01-24-2003, 06:12 PM
TIGGER TO THE RESCUE!! LOL
I choose C:\temp to make sure it would work on all systems.

“are you trying to open a file on the CD or a file that you have extracted?”
A file that I have extracted to the C:\temp file.
Where are you finding this information ie. "Recurse subfolders" options and maybe even the "Use internal zip folder names"
Is this winZip your talking about? what ver.? I'm running 8.1.
Thanks Tigg!

TJ_Tigger
01-24-2003, 08:31 PM
%TempDir% would work on all systems as well. I like to work with variables though, for their flexability.

The reason I asked the question about the file.open dialog, it you are trying to open the file from %SrcDir%\myfile.exe and not from "C:\temp\myfile.exe".

The information on "Recurse subfolders" and "Use internal zip folder names" is from the ZipFile.Extract action. Open that action and look at the Actions tab. It is under the "Unzip to folder:" dialog.

Here is the actions list you posted with a few changes I made using the information from my last two posts.

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

Bruce
01-24-2003, 11:52 PM
Ooh I understand now! Thx Tigg...

Corey
01-25-2003, 03:02 AM
Speaking of understanding, thanks to Tigg I just now understand the original question. /ubbthreads/images/icons/smile.gif Big Karmic points for you today with the double whammy Tigg.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)