Page 1 of 1
Help regarding {x64} or getosver()
#1
Posted 08 November 2011 - 06:03 PM
Hi, I am unable to get the following 2 commands to work properly. Keep getting error msg.
Please help
getOSver()=="Win7" {regedit}"%wpipath%\\Install\\cc\\win7 settings.reg"
getOSver()=="XP" {regedit} "%wpipath%\\Install\\cc\\xp settings.reg
or using
{x64} {regedit} "%wpipath%\\Install\\cc\\win7 settings.reg"
{x86} {regedit} "%wpipath%\\Install\\cc\\xp settings.reg"
Please help
getOSver()=="Win7" {regedit}"%wpipath%\\Install\\cc\\win7 settings.reg"
getOSver()=="XP" {regedit} "%wpipath%\\Install\\cc\\xp settings.reg
or using
{x64} {regedit} "%wpipath%\\Install\\cc\\win7 settings.reg"
{x86} {regedit} "%wpipath%\\Install\\cc\\xp settings.reg"
#3
Posted 08 November 2011 - 09:48 PM
#4
Posted 09 November 2011 - 01:16 AM
Try whithout SPACE with the reg name, example:
{x86} {regedit} "%wpipath%\\Install\\cc\\XPsettings.reg"
{x86} {regedit} "%wpipath%\\Install\\cc\\XPsettings.reg"
#5
Posted 09 November 2011 - 10:11 AM
Ok I use the following syntax and got the {x86} and {x64} method working
{x86} regedit /s "%wpipath%\Install\cc\xpsettings.reg"
{x64} regedit /s "%wpipath%\Install\cc\win7settings.reg"
however I still cannot get these working using getOSver() method ...
getOSver()=="Win7" regedit /s "%wpipath%\Install\cc\win7settings.reg"
getOSver()=="XP" regedit /s "%wpipath%\Install\cc\xpsettings.reg"
{x86} regedit /s "%wpipath%\Install\cc\xpsettings.reg"
{x64} regedit /s "%wpipath%\Install\cc\win7settings.reg"
however I still cannot get these working using getOSver() method ...
getOSver()=="Win7" regedit /s "%wpipath%\Install\cc\win7settings.reg"
getOSver()=="XP" regedit /s "%wpipath%\Install\cc\xpsettings.reg"
#6
Posted 09 November 2011 - 01:20 PM
Does not work for me also !
getOSver()=="Not found"
getOSver()=="Not found"
#7
Posted 13 November 2011 - 04:10 AM
Getosver is mainly for deps and exclusions. Am looking into why it won't add into the command line.
Yeah I am aware of the fact 2 or more commands will not work in the same line. Working on that too.
Yeah I am aware of the fact 2 or more commands will not work in the same line. Working on that too.
#8
Posted 17 November 2011 - 04:43 PM
Adding getosver to the commandlines is getting messy... (Might not happen)
However still looking into adding 2 or more commands to the same line.
However still looking into adding 2 or more commands to the same line.
#9
Posted 17 November 2011 - 05:56 PM
If not using it as a Deps or Cond you have to use {JSCRIPT}
{JSCRIPT}=if (getBits()==32) RunCmd('%wpipath%\Install\CCleaner.exe /s',false,true)
See the changelog.txt for more examples.
{JSCRIPT}=if (getBits()==32) RunCmd('%wpipath%\Install\CCleaner.exe /s',false,true)
See the changelog.txt for more examples.
#10
Posted 15 January 2012 - 04:55 AM
Kelsenellenelvian, on 17 November 2011 - 04:43 PM, said:
Adding getosver to the commandlines is getting messy... (Might not happen)
However still looking into adding 2 or more commands to the same line.
However still looking into adding 2 or more commands to the same line.
Hi All,
Bumping into that problem, I come up with a simple solution.
Only in the case of a {X86} or {X64} command, you might have after 1 other command.
I did not code the full solution, but a solution that I think fixes most of the cases.
Based on that fact, I modified installer.js file
initial code :
case '{X86}':
if (getBits()==64)
cmd="SKIP0";
cmd=cmd.replace(/{x86} /gi,'');
fsoCmd=false;
break;
case '{X64}':
if (getBits()==32)
cmd="SKIP0";
cmd=cmd.replace(/{x64} /gi,'');
fsoCmd=false;
break;
Modified code
case '{X86}':
if (getBits()==64)
cmd="SKIP0";
else
{
cmd=cmd.replace(/{x86} /gi,'');
handleCommand(cmd,item,cmdNum);
}
fsoCmd=false;
break;
case '{X64}':
if (getBits()==32)
cmd="SKIP0";
else
{
cmd=cmd.replace(/{x64} /gi,'');
cmd=handleCommand(cmd,item,cmdNum);
}
fsoCmd=false;
break;
Hope this helps some of you.
Gilles
Share this topic:
Page 1 of 1



Help
Back to top









