Jump to content

How choose between two installations (x64 or x32)


Recommended Posts

Hi people!

I adore that tool and now Im making my own personal WPI installation with all my favourite programs but I have a problem with some of them.

For example I want to install UltraVNC and depend of the architecture system of course I want to install it 32bit version or 64bit version. How can i do it? (I have in the same folder the both installs: "UltraVNC_1.0.8.2_x64_Setup.exe" and "UltraVNC_1.0.8.2_x32_Setup.exe")

Also I want to know if there is a way to put separately commands like in previous versions cmd1[] cmd2[] because the actual way is a little confusion to me, for example i have to do that:

cmds[pn]=['%wpipath%\\Install\\APPs_FREE\\DamnNFOViewer\\DamnNFOViewer.msi /quiet /norestart','%wpipath%\\Install\\APPs_FREE\\DamnNFOViewer\\DamnNFOViewer_SPANISH+.reg'];

Thanks people!

Edited by Maeggor
Link to comment
Share on other sites


Hi people!

I adore that tool and now Im making my own personal WPI installation with all my favourite programs but I have a problem with some of them.

For example I want to install UltraVNC and depend of the architecture system of course I want to install it 32bit version or 64bit version. How can i do it? (I have in the same folder the both installs: "UltraVNC_1.0.8.2_x64_Setup.exe" and "UltraVNC_1.0.8.2_x32_Setup.exe")

Also I want to know if there is a way to put separately commands like in previous versions cmd1[] cmd2[] because the actual way is a little confusion to me, for example i have to do that:

cmds[pn]=['%wpipath%\\Install\\APPs_FREE\\DamnNFOViewer\\DamnNFOViewer.msi /quiet /norestart','%wpipath%\\Install\\APPs_FREE\\DamnNFOViewer\\DamnNFOViewer_SPANISH+.reg'];

Thanks people!

I think you can use the same path and just add with WPI for x64:

bit64[pn]=['yes'];

And when you use the silent installation with WPI you can choose the version x86 or x64 you need!

Link to comment
Share on other sites

That means if your OS is 64-bits and you want use WPI for your program 64-bits you need to specify that with WPI 8.1.0 and choose:

bit64[pn]=['yes'];

You can make two separate commands:

one for: UltraVNC_1.0.8.2_x32_Setup.exe

and the other for: UltraVNC_1.0.8.2_x64_Setup.exe

Choose only the version UltraVNC (32-bits or 64-bits) you want!

Example with Adobe Reader 9 with WPI 8.1.0:

You can add a reg file before or after the program.

bit64[pn]=['no'];

cat[pn]=['Applications'];

cmds[pn]=['"%wpipath%\\Install\\Adobe\\AdbeRdr920_fr_FR.exe" /sAll /rs','REGEDIT /S %wpipath%\\Install\\Adobe\\Adobe.reg'];

desc[pn]=['Adobe Reader 9.2'];

pn++;

Edited by myselfidem
Link to comment
Share on other sites

I use a condition in dependencies tab

cond[pn]=['getArch()=="AMD64"'];

This way the install option will not even show up if you run wpi in a 32bit environment

BTW, you need to create two entries, one for each installer. For the 32 bit installer add the X86 condition so you dont see the option to install on a X64 PC

Edited by ricktendo64
Link to comment
Share on other sites

I use a condition in dependencies tab

cond[pn]=['getArch()=="AMD64"'];

This way the install option will not even show up if you run wpi in a 32bit environment

BTW, you need to create two entries, one for each installer. For the 32 bit installer add the X86 condition so you dont see the option to install on a X64 PC

I think this could be more usefull for me. Could you put me an example with this?

prog[pn]=['UltraVNC 1.082'];
uid[pn]=['ULTRAVNC'];
dflt[pn]=['yes']; forc[pn]=['no']; bit64[pn]=['no'];
cat[pn]=['Sistema'];
cmds[pn]=['%wpipath%\\Install\\APPs_FREE\\UltraVNC\\'];
desc[pn]=['<CENTER>Ultr@VNC es una excelente ...</CENTER>'];
picf[pn]=['"%wpipath%\\Graphics\\Logos\\UVNC.png"'];
picw[pn]=['128']; pich[pn]=['128']; textl[pn]=['Bottom']; pn++;

The files to install will be that:

UltraVNC_1.0.8.2_Setup.exe AND UltraVNC_1.0.8.2_x64_Setup.exe

Thanks both!

Edited by Maeggor
Link to comment
Share on other sites

Java Runtime Environment

prog[pn]=['Java Runtime Environment'];
uid[pn]=['JRE'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Runtimes'];
cmds[pn]=['"%wpipath%\\Install\\JRE\\x86\\jre1.6.0_23.msi" IEXPLORER=1 MOZILLA=1 SYSTRAY=0 AUTOUPDATECHECK=0 /qn'];
gcond[pn]=['getFileVersion("%WinDir%\\SysWOW64\\java.exe")>="6.0.230.5"'];
desc[pn]=['Java Runtime Environment'];
picf[pn]=['"%wpipath%\\Graphics\\Logos\\Java.png"'];
picw[pn]=['0'];
pich[pn]=['0'];
textl[pn]=['Right'];
pn++;

prog[pn]=['Java Runtime Environment (x64)'];
uid[pn]=['JRE64'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Runtimes'];
cmds[pn]=['"%wpipath%\\Install\\JRE\\amd64\\jre1.6.0_23.msi" IEXPLORER=1 MOZILLA=1 SYSTRAY=0 AUTOUPDATECHECK=0 /qn'];
cond[pn]=['getArch()=="AMD64"'];
gcond[pn]=['getFileVersion("%WinDir%\\System32\\java.exe")>="6.0.230.5"'];
desc[pn]=['Java Runtime Environment'];
picf[pn]=['"%wpipath%\\Graphics\\Logos\\Java.png"'];
picw[pn]=['0'];
pich[pn]=['0'];
textl[pn]=['Right'];
pn++;

The x86 installer will install on both x86 and x64 so I dont add and exeption to it

----------------------------------------------------------------------------------------------------------------------------------------------------------

You could also rename the installer and use the %PROCESSOR_ARCHITECTURE% variable

UltraVNC_1.0.8.2_x64_Setup.exe rename to UltraVNC_1.0.8.2_amd64_Setup.exe

UltraVNC_1.0.8.2_x32_Setup.exe rename to UltraVNC_1.0.8.2_x86_Setup.exe

Then in WPI use the following installer name

UltraVNC_1.0.8.2_%PROCESSOR_ARCHITECTURE%_Setup.exe

Depending on what PC you run wpi the installer on the %PROCESSOR_ARCHITECTURE% will change to amd64 or x86 and it will launch the correct installer, this way you only need to create one installer entry

Edited by ricktendo64
Link to comment
Share on other sites

I mostly work with 1 entry:

cmds[pn]=['{JSCRIPT}=if (getBits()==32) RunCmd(\'%wpipath%\\Install\\APPs_FREE\\UltraVNC\\UltraVNC_1.0.8.2_x32_Setup.exe\'%comma%false%comma%true)','{JSCRIPT}=if (getBits()==64) RunCmd(\'%wpipath%\\Install\\APPs_FREE\\UltraVNC\\UltraVNC_1.0.8.2_x64_Setup.exe\'%comma%false%comma%true)'];

Don't forget to put the silent switches for the installer if it needs some.

Link to comment
Share on other sites

About UltraVNC 1.0.8.2 silent install.

1) First method:

You can find programs to download here:

VNCed dowloads

I've made successfuly an test with VNCed UltraVNC MSI 1.0.8 - Zip File - 5MB (Windows 7 x86)

Expand the folder inside: C:\VNCed_UltraVNC_MSI_108

First add this reg key for the Certificate and name this one like:

VNC_Cert.reg


Windows Registry Editor Version 5.00

; TrustedPublisher Certificate for UltraVNC 1.0.8.2

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates\F586FAD0B501F9E8556F8E948714F6D652BC4EDA]
"Blob"=hex:03,00,00,00,01,00,00,00,14,00,00,00,f5,86,fa,d0,b5,01,f9,e8,55,6f,\
8e,94,87,14,f6,d6,52,bc,4e,da,04,00,00,00,01,00,00,00,10,00,00,00,46,df,b8,\
aa,f3,48,d1,75,6a,a8,b1,0b,b7,5d,f4,61,14,00,00,00,01,00,00,00,14,00,00,00,\
6d,a7,93,ae,3c,ae,34,3c,18,7e,d4,ce,e5,15,48,72,f6,69,c7,25,19,00,00,00,01,\
00,00,00,10,00,00,00,13,09,10,aa,48,02,0c,2a,46,73,b4,8f,72,a8,f0,cd,0f,00,\
00,00,01,00,00,00,14,00,00,00,ff,b3,ee,46,d1,7c,3e,ca,b9,5d,5b,11,9a,97,46,\
da,6c,13,08,99,20,00,00,00,01,00,00,00,05,04,00,00,30,82,04,01,30,82,02,e9,\
a0,03,02,01,02,02,0b,01,00,00,00,00,01,20,32,cf,f6,8d,30,0d,06,09,2a,86,48,\
86,f7,0d,01,01,05,05,00,30,63,31,0b,30,09,06,03,55,04,06,13,02,42,45,31,19,\
30,17,06,03,55,04,0a,13,10,47,6c,6f,62,61,6c,53,69,67,6e,20,6e,76,2d,73,61,\
31,16,30,14,06,03,55,04,0b,13,0d,4f,62,6a,65,63,74,53,69,67,6e,20,43,41,31,\
21,30,1f,06,03,55,04,03,13,18,47,6c,6f,62,61,6c,53,69,67,6e,20,4f,62,6a,65,\
63,74,53,69,67,6e,20,43,41,30,1e,17,0d,30,39,30,33,32,33,30,39,32,32,33,37,\
5a,17,0d,31,31,30,34,31,30,31,31,32,38,34,37,5a,30,5b,31,0b,30,09,06,03,55,\
04,06,13,02,42,45,31,12,30,10,06,03,55,04,0a,13,09,75,76,6e,63,20,62,76,62,\
61,31,12,30,10,06,03,55,04,03,13,09,75,76,6e,63,20,62,76,62,61,31,24,30,22,\
06,09,2a,86,48,86,f7,0d,01,09,01,16,15,72,75,64,69,2e,64,65,2e,76,6f,73,40,\
73,6b,79,6e,65,74,2e,62,65,30,81,9f,30,0d,06,09,2a,86,48,86,f7,0d,01,01,01,\
05,00,03,81,8d,00,30,81,89,02,81,81,00,c7,c5,88,c7,f6,24,4f,8f,95,5e,5c,8c,\
da,8e,5b,17,7b,96,19,69,54,c3,63,d5,a5,8b,d8,67,1b,24,05,37,1c,91,96,35,7c,\
78,15,57,d6,9f,5c,3b,51,97,c2,d4,15,30,2b,0b,73,85,34,70,f3,b0,84,ee,f3,cc,\
1b,d0,5b,9b,fb,6a,07,d2,25,6c,3d,b5,7b,66,34,ce,24,4b,a4,5e,9c,bb,cd,17,c6,\
11,ee,cc,ef,a9,ec,f9,5d,87,be,90,f5,18,dc,1c,9b,e2,e5,98,f2,71,ff,22,d7,64,\
c6,cb,50,a9,aa,93,fe,3b,9a,8d,f3,8b,86,9d,c9,f3,02,03,01,00,01,a3,82,01,40,\
30,82,01,3c,30,1f,06,03,55,1d,23,04,18,30,16,80,14,d2,5b,f3,4b,26,4b,a5,b0,\
e7,5d,fd,56,7f,f6,f1,2e,38,4e,53,a0,30,4e,06,08,2b,06,01,05,05,07,01,01,04,\
42,30,40,30,3e,06,08,2b,06,01,05,05,07,30,02,86,32,68,74,74,70,3a,2f,2f,73,\
65,63,75,72,65,2e,67,6c,6f,62,61,6c,73,69,67,6e,2e,6e,65,74,2f,63,61,63,65,\
72,74,2f,4f,62,6a,65,63,74,53,69,67,6e,2e,63,72,74,30,39,06,03,55,1d,1f,04,\
32,30,30,30,2e,a0,2c,a0,2a,86,28,68,74,74,70,3a,2f,2f,63,72,6c,2e,67,6c,6f,\
62,61,6c,73,69,67,6e,2e,6e,65,74,2f,4f,62,6a,65,63,74,53,69,67,6e,2e,63,72,\
6c,30,09,06,03,55,1d,13,04,02,30,00,30,0e,06,03,55,1d,0f,01,01,ff,04,04,03,\
02,07,80,30,13,06,03,55,1d,25,04,0c,30,0a,06,08,2b,06,01,05,05,07,03,03,30,\
4b,06,03,55,1d,20,04,44,30,42,30,40,06,09,2b,06,01,04,01,a0,32,01,32,30,33,\
30,31,06,08,2b,06,01,05,05,07,02,01,16,25,68,74,74,70,3a,2f,2f,77,77,77,2e,\
67,6c,6f,62,61,6c,73,69,67,6e,2e,6e,65,74,2f,72,65,70,6f,73,69,74,6f,72,79,\
2f,30,11,06,09,60,86,48,01,86,f8,42,01,01,04,04,03,02,04,10,30,0d,06,09,2a,\
86,48,86,f7,0d,01,01,05,05,00,03,82,01,01,00,2d,9f,bb,d9,8d,40,7e,3d,5f,c5,\
9a,2f,04,b9,db,d7,c4,25,a0,68,3d,62,fd,46,4c,9c,ca,f8,0f,eb,b5,1e,d1,4c,10,\
34,e8,a0,61,c1,4a,76,bd,92,56,2f,9c,4d,9f,2a,c5,36,89,00,ba,5b,f3,a3,2a,9b,\
f8,f3,99,ac,ba,e8,00,ec,25,57,72,6a,07,76,37,60,3f,94,5d,c3,9e,05,6b,a9,96,\
ef,41,ce,6e,0f,e1,66,27,55,d0,14,61,e7,d6,af,e3,6d,0d,01,7c,31,e7,82,c1,d0,\
82,a2,1c,e0,8e,2d,f9,cf,80,e7,a8,e3,4c,cb,26,ac,af,7a,e1,f2,cd,07,3d,5b,ed,\
45,5f,43,92,c6,2c,90,34,76,c6,46,cf,4d,66,e4,c2,b1,21,92,17,20,52,6d,2e,4e,\
ad,ba,5b,d8,6a,33,6b,eb,fb,71,39,c5,e2,54,84,63,27,16,6b,90,b5,de,58,98,21,\
33,23,44,04,3e,89,11,eb,c8,e1,c6,19,38,9c,45,3f,fb,f8,09,e5,ba,d5,48,a4,a7,\
76,7f,e5,32,7f,c7,7a,ec,9c,93,aa,1d,e3,89,5c,4d,1c,7a,57,fc,fa,5c,60,b6,86,\
73,47,9b,74,7c,0d,a5,2e,83,9d,c4,15,78,25,aa,23,2f,02,9f,a7,4d

Copy this reg file inside: C:\VNCed_UltraVNC_MSI_108\UltraVNC_1082

You can add inside: UltraVNC_install.bat

@echo off

regedit /s VNC_Cert.reg

UltraVNC_1.0.8.2_Setup.exe /verysilent /loadinf="UltraVNC.inf"

xcopy "ultravnc.ini" "%PROGRAMFILES%\UltraVNC\" /R /Y

net stop uvnc_service

net start uvnc_service

Cheers

*Edit:

2) Second method:

If you want you can improve the silent installation for UltraVNC with SFX method:

Help about this method:

http://www.wincert.net/forum/index.php?/topic/1978-tutorial-making-a-7-zip-switchless-installer/

http://7zsfx.info/en/

You need 7zsd.sfx; config.txt and config.bat files and 7zip installed.

config.txt:


;!@Install@!UTF-8!
GUIMode="2"
RunProgram="regedit /s VNC_Cert.reg"
RunProgram="UltraVNC_1.0.8.2_Setup.exe /verysilent /loadinf=UltraVNC.inf"
RunProgram="hidcon:cmd /c UltraVNC_install.bat"
;!@InstallEnd@!

config.bat

copy /b 7zsd.sfx + config.txt + UltraVNC.7z UltraVNC.exe

UltraVNC_install.bat

@echo off

net stop uvnc_service

net start uvnc_service

With 7zip create a folder named UltraVNC.7z and launch the config.bat file to create the new UltraVNC.exe

The package created "UltraVNC.exe" give an installation fully unattended and without switches!

*Edit: Using 7zsd_All.sfx you can choose between 32-bits or 64-bits UltaVNC during the silent installation

Help here:

7z SFX modified module and Tools

Example inside config.txt:


RunProgram="x64:blah.64.exe /s"
RunProgram="x86:blah.32.exe /s"

Edited by myselfidem
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...