runonce
Nov 7 2003, 12:40 AM
When I was going to attempt an include WinZip in my unattended install I couldn't find any posts that expalined this fully. So with bits and pieces of info taken from this board, the WinZip website and trial & error I finally got my install of WinZip 8.1 to work.
Here is how I did it:
1.
Take all the files from a working copy of WinZip, which usaually can be found in the c:\Program Files\WinZip folder. (According to WinZip it's not preferable to use a copy of a version that has previously been updated. They suggest you unistall your updated version and download and install the most current version.)
2.
Create a $Progs directory under the $OEM$ directory then greate a WinZip directory under the $Progs directory ($OEM$\$Progs\WinZip) and place all the WinZip files into the \WinZip directory. (This will place the WinZip folder in the c:\Program Files diretory on your computer during the Unattended Install.)
{I found this to be important as when WinZip installs it does not create a WinZip folder within the c:\Program Files folder on its own as other programs do. It will leave the files it needs to run in the same directory that they where orginally placed in. The problem that this caused me was I had all the program's I intended to install go into an c:\install\"program name" folder for each of the applications from where they where installed during the Unattended install. When the install was complete I ran a batch files to remove the c:\install directory. In doing so I removed the WinZip files needed for it to run. By making the unattended install place the WinZip Files in the Program Files directory you can remove the unneeded programs from your install folder and leave WinZip files where they should have been in the first place.}
3.
Use this line in your batch file to call the installation of WinZip.
echo.
echo Installing WinZip 8.1
start /wait %systemdrive%\"Program Files"\winzip\winzip32.exe /noqp /autoinstall
echo Installation complete!I know for you pro's this might not be anything new, but it took me a few days to figure out why WinZip was installing but I couldn't get it to run after the reboot. My Cleanup batch file was removing the darn WinZip program files.
I hope this can help someone. I know I wish I had know it 3 days ago.
baliktad
Nov 7 2003, 02:57 AM
Nice post runonce. I've been using basically this same method for some time and just wanted to add a few notes.
One of the things I do after installing is clean up the start menu. I find that I don't really need all those extra links so I remove all the shortcuts except the main program executable from its program group. Also, I take the opportunity to make a few choice registry changes. Here's the relevant portion of a batch file I use.
CODE
echo Installing WinZip... Please Wait
"%ProgramFiles%\WinZip\winzip32.exe" /noqp /autoinstall
echo Cleaning Up... Please Wait
del "%allusersprofile%\start menu\WinZip.lnk"
del "%allusersprofile%\desktop\WinZip.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\Uninstall WinZip.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\Help Manual.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\ReadMe.txt.lnk"
del "%allusersprofile%\start menu\Programs\WinZip\What's New.lnk"
regedit /s registerwinzip.reg
Of course, then registerwinzip.reg takes care of adding my own registration code and a few other tweaks in the registry to make sure things are the way I like it.
CODE
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Nico Mak Computing\WinZip\WinIni]
"Name"="Your Name"
"SN"="XXXXXXXX"
[HKEY_CURRENT_USER\Software\Nico Mak Computing\WinZip\WinZip]
"ShowTips"="0"
;Get rid of all those silly icons in the context menus
[-HKEY_CLASSES_ROOT\Directory\shellex\DragDropHandlers\WinZip]
[-HKEY_CLASSES_ROOT\Drive\shellex\DragDropHandlers\WinZip]
[-HKEY_CLASSES_ROOT\Folder\shellex\DragDropHandlers\WinZip]
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\WinZip]
[-HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\WinZip]
[-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\WinZip]
;And tell Winzip that's exactly how we want it
[HKEY_CURRENT_USER\Software\Nico Mak Computing\WinZip\fm]
"shlExt"="0"
runonce
Nov 7 2003, 08:05 AM
baliktad,
Thanks for the additional information.
shareef59
Nov 28 2003, 02:05 AM
Hi Guys
For winzip 8.1 (registered), can the "RunOnceEx" method be used? If so, can anyone help me out with the correct codes/switch etc?
Thanks in advance.
Alanoll
Dec 2 2003, 03:12 PM
its the same switchs.....
just use teh INF variable for Program FIlesand you should be good.
look for the post of DirIds in the main Unattended forum
shareef59
Dec 2 2003, 03:38 PM
@Alanoll
Thank you for your reply. I am sure it will be most helpful.
QuickFire(UK)
Dec 2 2003, 10:29 PM
hi,
i have a latest version of winzip v8.1 SR1 with a digital signature of 11 february 2003.
you MUST add to the registry.
[HKEY_LOCAL_MACHINE\SOFTWARE\Nico Mak Computing\WinZip\WinIni]
"Setup"="1"
or after you have installed it. When are run winzip it will make you enter the registation entries again.
Thanks QuickFire(UK)...
shareef59
Dec 3 2003, 10:13 AM
@QuickFire[UK]
Thanks buddy, very helpful!!!
-From another English man lost in America.....
JoJa15
Jan 6 2004, 10:55 PM
Thanks for the great tip on WinZip.
Anyone know how I can silently install the Command Line, Internet Browser, Outlook, and Self-Extractor Add-On's?
Thanks,
John
pfear
Jan 10 2004, 06:39 AM
I used the instructions from "http://www.MSFN.org/board/index.php?showtopic=10618" to install WinZip 8.1sr1 from CMDLINES.TXT, but I got the following error:
'Invalid option "/noqp"'.
After a lot of research, I managed to install WinZip with no errors. I had to go to the WinZip directory and install it from there. Then I moved back to the <cdrom>:\$OEM$.
When we install WinZip from CMDLINES.TXT, it is installed to the Default User. So that the registration is valid for all users that we want to create.
Here is my solution:
1. Place Winzip in ( $OEM$\$1\Winzip ) . We can't use $Progs, because $Progs is only copied to the hard disk after CMDLINES.TXT is called.
2. In the .CMD file that is called from CMDLINES.TXT, add these lines:
ECHO.
ECHO Installing WinZip 8.1
ECHO Please wait ...
SET DIROEM=%CD%
MOVE "%systemdrive%\WinZip" "%ProgramFiles%"
for %%i in (c: d: e: f:) do if /I "%systemdrive%"=="%%i" %%i
cd "%ProgramFiles%\WinZip"
start /wait winzip32.exe /noqp /autoinstall
for %%i in (c: d: e: f: g: h: i: j:) do if /I "%DIROEM%"=="%%i\$OEM$" %%i
CD %DIROEM%
del "%allusersprofile%\Menu Iniciar\WinZip.lnk"
del "%allusersprofile%\Desktop\WinZip.lnk"
START /WAIT REGEDIT /S .\registerwinzip.reg
WinZip is installed and registered for all users that are created after this point.
pfear
aknott
Jan 27 2004, 03:18 PM
for an installation of winzip without creating icons in startup menu you only need
the /cleaninstall switch
copy a valid winzip from program files to your dist in $OEM$\$progs\
and add the following line in your unattand command file
c:\program files\winzip\winzip32.exe /cleaninstall
that's all...
you perhaps need also a file named
autoinst.txt in the winzip folder containing the following line
I agree to the WinZip Computing License Agreement
you can also get your registration conde from the registry and use the .reg file before the winzip command like that
REM ----------- WINZIP
REG ADD %KEY%\010 /VE /D "Winzip" /f
REG ADD %KEY%\010 /V 1 /D "regedit /s %systemdrive%\regfiles\winzip.reg" /f
REG ADD %KEY%\010 /V 2 /D "%systemdrive%\progra~1\WinZip\winzip32.exe /cleaninstall" /f
IT WORKS .......
holyone
Apr 12 2004, 12:02 PM
I have a problem withe the install...
It's install winzip but after i do "UnInstall" it's delete the files in the install folder...
How can i change it?
And also after the install it's still asking for the code...
Thanks for the help !
holyone.
kenken mak
Jun 24 2004, 10:06 PM
I have a problem with auto-installation of winzip 7 without tip when i launch it afterwards
and aknott, I can't understand your meaning
I do got autoinst.txt with the line "I agree to the WinZip Computing License Agreement"
so i just need to add "c:\program files\winzip\winzip32.exe /cleaninstall" in order to have no icon created?
Thanks,
Kenneth
Lightning
Oct 9 2004, 12:03 PM
Has anyone had any success silently installing WinZip 9.0.6028 Corporate edition?
Alanoll
Oct 9 2004, 02:54 PM
Last I saw, it works just the same.
chyronn
Nov 4 2004, 10:30 PM
QUOTE (holyone @ Apr 12 2004, 12:02 PM)
I have a problem withe the install...
It's install winzip but after i do "UnInstall" it's delete the files in the install folder...
I also have this problem, when i put the contents of my winzip folder from my current machine into the $Progs folder for the unattended CD, it works how it's supposed to, but i noticed that it only places a copy into Program Files and NOT actually executing the install procedure in the newly created Windows, when i click it, it begins to install.....
i followed the exact same procedure as runonce outlined but i put my commands in the
runonceex file not the start.cmd
does this make any difference?
Astalavista
Nov 5 2004, 01:11 AM
here is what u do,
1. winrar your winzip folder, create a SFX file (self extracting file)
extracting to c:\program files\winzip silent install overwrite options
2. in your runonce add this command
REG ADD %KEY%\019 /VE /D "WinZip 9.0" /f
REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\Winzip\WinZipSFX.exe" /f
REG ADD %KEY%\019 /V 2 /D "\"%systemdrive%\"Program Files"\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f
i hope this helps u out.
chyronn
Nov 5 2004, 09:32 AM
thank you, i can see how this is going to work for me now. i'll try it at once!
chyronn
Nov 5 2004, 07:49 PM
no luck, everything works up until when runonceex needs to execute the install. it seems to be doing something but after XP has finished loading after reboot it's not part of the installation. it's there in the Program Files\Winzip folder but it's just sitting there inert waiting for me to double click it and start the process. i really can't understand why the command isn't tripping the switches.
Astalavista
Nov 6 2004, 08:19 AM
i suggest that u download the latest winzip
from www.winzip.com
uninstall and delete your c:\program files\winzip
reinstall winzip 9.1
try the steps outline again.
chyronn
Dec 4 2004, 05:19 PM
Still doesn't work...can someone give me a definitive version of how they got Winxip9.0 to silently install (registered) with the runonceex file?
prathapml
Dec 4 2004, 05:56 PM
First try trouble-shooting as to why the code by Astalasvista did not work - it looks perfectly fine. Check whether it was run at all by using PAUSE statements and removing the silent switches. Check whether you have any special characters in your runonceex which is holding-up execution of the batch-job.
And lastly, this is astalavista's code (posted above) with a slight modification:
CODE
REG ADD %KEY%\019 /VE /D "WinZip 9.0" /f
REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\Winzip\WinZipSFX.exe" /f
REG ADD %KEY%\019 /V 2 /D "%ProgramFiles%\winzip\winzip32.exe /noqp /notip /autoinstall" /f
Try it, maybe this would work fine.
alfareed
Dec 13 2004, 01:15 PM
QUOTE (Lightning @ Oct 9 2004, 09:03 PM)
Has anyone had any success silently installing WinZip 9.0.6028 Corporate edition?
search slove
LispWarez
Dec 16 2004, 10:16 AM
Hey all. for all those who still havent soloved the winzip silent install i have made an installer for it. it is a NSIS installer so it needs the /S to make it silent but it installs and it is regged and doesnt have the tips @ startup. hope someone get some use from it. download it
here alfareed
Dec 22 2004, 12:54 PM
thanks
durex
Jan 11 2005, 08:43 AM
ANyone know how to turn off the system tray quick pick thing via registry?
I know theres the /noqp option, but Im using a different method to install Winzip and need to have this turned off automatically.
The reg entry for it seems to use some randomly generated number and I cant figure out the rhyme or reason to it.
THanks!
Major
Feb 2 2005, 08:16 PM
I have tried this batch but i can´t get success silently installing, because it ask me for the location of the folder. I have tried deleting /noqp, and then /notp but without success, it usually ask me on the destination of the program. anu suggestions please.
here the batch file i used
cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing application" /f
REG ADD %KEY%\066 /VE /D "WinZip 9.0" /f
REG ADD %KEY%\066 /V 1 /D "\"%Systemdrive%\WinZip9.0.6224.SR1\winzip.exe\" /noqp /notp /autoinstall" /f
REG ADD %KEY%\066 /V 2 /D "REGEDIT /S %systemdrive%\WinZip9.0.6224.SR1\winzip.reg" /f
Exit
Thanks
Astalavista
Feb 2 2005, 08:25 PM
winzip sucks why would u want to use it?
when winrar does so much more?
in addition 7zip is even greater!
Major
Feb 2 2005, 08:33 PM
You are right. i will not use it, but for curious, why it does not work, i have copied the batch i use from your post. i have committed some error??
Sorry and thanks
Major
Feb 2 2005, 09:22 PM
I cannot be able to install the program. i have tried differents method withou success. Has anyone got install winzip silently (winzip9.0)
Thanks
SiMoNsAyS
Feb 2 2005, 09:31 PM
this is my way and works:
pack your winzip folder on a winrar sfx archive, comment
CODE
;El comentario siguiente contiene secuencias de órdenes para SFX
Path=WinZIP
Silent=1
Overwrite=1
Delete=*.*
export the key
CODE
[HKEY_CURRENT_USER\Software\Nico Mak Computing]
and save it as winzip.reg
for runonce
CODE
REG ADD %KEY%\053 /VE /D "WinZIP 9 SR-1 (En)" /f
REG ADD %KEY%\053 /V 1 /D "%CDROM%\Software\WinZIP\winzip.exe /S" /f
REG ADD %KEY%\053 /V 2 /D "REGEDIT /S %CDROM%\Software\WinZIP\winzip.reg" /f
REG ADD %KEY%\053 /V 3 /D "\"%PROGRAMFILES%\WinZip\winzip32.exe\" /noqp /autoinstall" /f
Astalavista
Feb 2 2005, 09:31 PM
what does delete *.* do?
SiMoNsAyS
Feb 2 2005, 09:34 PM
@Asta, will delete all the files on the destination folder before extracting it
Major
Feb 2 2005, 10:02 PM
it tells me that it doesnt find the path of the file "C:\Archivos de programa\winzip\winzip32.exe"
i have done the following: at first i have only one file winzip90.exe, i extract it and i get some files .txt and setup.exe, right click on them, add to archive, create sfx archive and paste the comments on the commen tab. but ie tells me that it doesnt fine the path, then i see the directory C:|Archivos de programa\winzip\, i dont see any archive winzip32.exe, only i see the same archives (some files .txt and the archive setup.exe).
What am i doing wrong?
Major
Feb 2 2005, 10:19 PM
I think that i understand what you want to say to me:
first i have to install the program manually and enter the serial, when all is ok, i pick right click on the folder c:\arc....\winzip\, and create sfx archive, so when i will install it silently, it will find winzip32.exe in the folder.
Thank you colega
super_freak
Mar 20 2005, 08:19 AM
It's much easyer than you guys think
Install Winzip on a machine, then copy the folder "WinZip" that is under "Program files", to the install directory $OEM$\Progs\ and then type in or copy/paste these lines in RunOnceEx.cmd
REG ADD %KEY%\025 /VE /D "Winzip 9.0" /f
REG ADD %KEY%\025 /V 1 /D "\"%programfiles%\Winzip\winzip32.exe\" /noqp /notip /autoinstall" /f
You can also use the switch /cleaninstall instead of /autoinstall, then you get no shortcuts, for registration entered you need also add a *.reg file
durex
Mar 21 2005, 01:47 PM
Which is the exact same method thats outlined on the very 1st post of this thread...
oneless
May 8 2005, 04:40 PM
about a WPI way for winzip 9 ?
oneless
May 9 2005, 02:45 PM
just I put together some parts
of posts before that in this thread .
ok . this is a way who works here with
WPI for
WinZip9.0SR1 .
CODE
prog[pn]=['WinZip 9.0SR1 (silent)']
uid[pn]=['WINZIP9']
desc[pn]=['...']
cmd1[pn]=['%cdrom%\\WinApp\\Winzip_v9_0\\WinZip90SR1.exe']
cmd2[pn]=['"%ProgramFiles%\\winzip\\winzip32.exe" /noqp /autoinstall']
cmd3[pn]=['regedit /s %cdrom%\\WinApp\\Winzip_v9_0\\registerWinZip.reg']
cond[pn]=['FileExists("%cdrom%\\WinApp\\Winzip_v9_0\\WinZip90SR1.exe")']
cat[pn]=['6) Tools']
pn++
Step 1 : cmd1[pn]=['%cdrom%\\WinApp\\Winzip_v9_0\\WinZip90SR1.exe']
How make
WinZip90SR1.exe as a new package :
I follow old advices :
- I download the last version of WinZip 9.0SR1
- I install this package
- I registered for verify
registerWinZip.reg- I like simplicity of @astalavista way in NIS2005 so
With
c:\Program Files\Winzip directory I make a WinRar archive,
RAR format , Compression method
BEST ,
SFX archive,
SOLID archive , with comment
CODE
;The comment below contains SFX script commands
Path=C:\Program Files
Silent=1
Overwrite=1
and I name it
WinZip90SR1.exe . whatever , is a name .
- UnInstall WInZip
- reboot machine for loose any trace of old WinZip installation.
Step 2 : cmd2[pn]=['
"%ProgramFiles%\\winzip\\winzip32.exe
" /noqp /autoinstall']
here is nothing new , just twenty minutes spent for choosing the right quotes inside.
Double quotes are very necessary there .
Step 3 :
registerWinZip.reg is copy from the second post of @baliktad ,
just I remove the seven lines about ";Get rid of all those silly icons in the context menus" (I like a part of them)
Step 4 : Before run it you can look at the pathes above. use yours.
only for testing purposes , I use same files (including same serial)
on the other machine . worked fine .
Angel Blue01
May 30 2005, 07:04 AM
QUOTE (super_freak @ Mar 20 2005, 09:19 AM)
It's much easyer than you guys think
Install Winzip on a machine, then copy the folder "WinZip" that is under "Program files", to the install directory $OEM$\Progs\ and then type in or copy/paste these lines in RunOnceEx.cmd
REG ADD %KEY%\025 /VE /D "Winzip 9.0" /f
REG ADD %KEY%\025 /V 1 /D "\"%programfiles%\Winzip\winzip32.exe\" /noqp /notip /autoinstall" /f
You can also use the switch /cleaninstall instead of /autoinstall, then you get no shortcuts, for registration entered you need also add a *.reg file
I just tried this and it says the directory name is invalid.
DonDamm
Jun 13 2005, 11:50 AM
That's because he meant to write %programdir% not "files" lol
targa
Jun 13 2005, 12:38 PM
For WPI create a directory in $OEM$ called $PROGS then copy a working copy of winzip into this $PROGS folder.
Then add the following line to your WPI
"%ProgramFiles%\winzip\winzip32.exe" /noqp /notip /autoinstall.
By the way does noybody knows how I can change the default icon for zip files to the usual winzip icon??
Rgds
Targa
DonDamm
Jun 22 2005, 06:56 PM
Okay, it really is %programfiles%. Just testing to see if you were awake!

)
The normal WinZip icon is the first one in the winzip32.exe file. If you haven't installed Winzip, you could still access it through the file association. Go to Explorer menu, click on Tools / Folder Options, The click the File Types tab. Scroll down to zip. If it isn't there you can add it, but it shuld be there. Now Click the Advanced button and in the dialog box you'll see a Change Icon button. then you can choose any you like.
I believe you can do this through the registry under HKR where files associations are listed. I'd have to look further to get the exact key and values, but you should be able to get it from there.
Astalavista
Jun 22 2005, 06:59 PM
hi guys...
i have a little suggest for you
winrar is a very good product it does rar and zip files
plus it is very easy to install silently.
cheers
DonDamm
Jun 25 2005, 11:25 AM
Yes, that is true, AV, but I still have it on my machine. I tend to use WinRar and WinAce more though. WinAce will unzip multiple zips in one go with no complaint. 7zip is also good for the ultimate compression, but it leaves things in the context menu which you must remove manually. Not so good.
When I build an installation for someone else, sometimes I have to include things I myself never use (AIM or MSN messenger for example) because they or someone in their house (usually a child) insists on it. WinZip is a great tool and easy to use for most folks, and so it is often a good idea to include it.
While many of us here build unattendeds for ourselves, one of the best uses is helping out someone else who is daunted by the qhole installation process. Making it unattended takes a lot of the fear away. I do it more and more. I even create them for clients from their own media, so they can install if I'm not around. Things like the default homepage are dead easy, but make a big difference to a clueless client. So, gaining knowledge about programs we don't personally use or even recommend can be a benefit. Okay?
Astalavista
Jun 26 2005, 08:50 AM
I made a prepacked winzip. you can find it in the applications forum
totally silent installer.
you can download it here
http://www.msfn.org/board/index.php?showto...ndpost&p=342939 chyronn
Jul 4 2005, 10:27 AM
link doesn't work
Shahram
Mar 1 2006, 11:08 AM
Well, it's not that complicated,
make an SFX exe file of winzip folder with winrar with these options,
;The comment below contains SFX script commands
Path=WINZIP
SavePath
Setup=WINZIP32.EXE /noqp /autoinstall
Silent=1
Overwrite=1
and what u'll need to run the main executable only,
and then or before you can register using winzip.reg:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Nico Mak Computing\WinZip\WinIni]
"Name1"="Username"
"SN1"="Serial"
[HKEY_CURRENT_USER\Software\Nico Mak Computing\WinZip\WinZip]
"ShowTips"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Nico Mak Computing\WinZip\WinIni]
"Setup"="1"
dumdum8684
Mar 23 2006, 02:23 AM
I read through this post and I was wondering why no one had posted the WinZip site here. They have a nice simple guide that explains all of the switches.
http://www.winzip.com/site_install.htm#wizTry that.
-Aaron
jc888
Mar 30 2006, 08:56 PM
Just got the latest version winzip10.0.6698
It looks like it doesn't surpport the slience install stuff. Also it pack with the
google AD stuff.
Somebody can make new install .cab or .exe to let it install quietly and smoothly?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.