Jump to content

gilles_gros

Member
  • Posts

    13
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

Posts posted by gilles_gros

  1. Hi all,

     

    I am trying to run a command that is build on reading the registry thru JSCRIPT

     

    I tryed the following with no result

     

    cmds[pn]=['{JSCRIPT}=RunCmd(RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString") %comma% false %comma% true);'];

    or even

     

    cmds[pn]=['{JSCRIPT}=RunCmd(RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString").replace(/\\/gi %comma% "\\\\") %comma% false %comma% true);'];

     

    none do work.

     

    I know that 

     

    cmds[pn]=['{JSCRIPT}=alert ("myvalue = " + RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString"));'];

     

    it shows a message box with the correct value

    C:\WINDOWS\SysWOW64\Macromed\Flash\FlashUtil32_13_0_0_206_ActiveX.exe -maintain activex

     

     

    Please advise on how to get it working.

     

    Regards.

     

    Gilles

     

  2. Hi all,

    After looking into that issue, I came to the conclusion, that I need 2 REGEDIT command patern as on a 64 bit system, such as Windows 7 I need to include registry key either in the standard hive (64 bits) or in the 32 bit hive (Wow6432Node).

    To achieve that I have created a REGEDIT32 patern to force usage of 32 bits entry on a 64 bit system

    As I do not use the UI to set my config file I have not looked into the changes that need to be made.

    In file installer.js add and replace the case REGEDIT statement by

    case 'REGEDIT32' :	if (FileExists(cmd))	{		if (cmd.indexOf(" ") != - 1 && cmd.substr(0, 1) != '"')			cmd = '"'+cmd+'"'; 		cmd='"'+sysPath32+'RegEdit" /S ' + cmd; 		fsoCmd=true;	}	else		cmd = getText(txtErrorRegEditFileExists);	break;case 'REGEDIT' :	if (FileExists(cmd))	{		if (cmd.indexOf(" ") != - 1 && cmd.substr(0, 1) != '"')			cmd = '"'+cmd+'"';		if (OSBits==64) 			cmd='"'+windir+'\\RegEdit" /S ' + cmd;				   		else 			cmd='"'+sysPath32+'RegEdit" /S ' + cmd; 		fsoCmd=true;	}	else		cmd = getText(txtErrorRegEditFileExists);	break

    Hope this helps someone.

    Regards.

    Gilles

  3. Hi,

    I just upgrade to 8.7.2 release. I did not bump into bit64 problem. I mean, I remove all line bit64[pn] form my config.js file.

    But I ran into a problem with REGEDIT command.

    Before I was using WPI 8.6.3

    my config file was :

    prog[pn]=['Activer Windows Update'];uid[pn]=['WUx64'];desc[pn]=['Activer les parammétres de WindowsUpdate'];dflt[pn]=['no'];forc[pn]=['no'];bit64[pn]=['yes'];cat[pn]=['Finalisation'];configs[pn]=['Win7,Licence Free'];cmds[pn]=['{REGEDIT} "%wpipath%\\..\\Windows Seven\\Astuces - Windows 7\\Activer WindowsUpdate - Windows Seven.reg"'];cond[pn]=['getOSver()=="Win7" && FileExists("%wpipath%\\..\\Windows Seven\\Astuces - Windows 7\\Activer WindowsUpdate - Windows Seven.reg")'];pn++;
    it was using as REGEDIT C:\Windows\system32\RegEdt32.exe
    Now with WPI 8.7.2 it is using C:\Windows\sysWOW64\regedit.exe
    (I suppose the difference is related to sysPath32 and sysPath64)
    and unfortunately with my .reg file il does not work.
    Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]"AUOptions"=dword:00000002"IncludeRecommendedUpdates"=dword:00000001"ElevateNonAdmins"=dword:00000001

    Thanks for any help provided.

    Regards,

    Gilles

  4. Hi all,

    After posting on wincert a fix for my usage, I propose you the following change.

    I was willing to use an IF statement as a cmd iun WPI. And it did not work.

    cmds[pn]=[' "%wpipath%\\PathToExe\\MainExe.exe" /s /v/qn',
    '{CMD} IF EXIST "%wpipath%\\PathToExe\\ExeFile.exe" start "Title" /WAIT "%wpipath%\\PathToExe\\ExeFile.exe" /s /v/qn'];
    cond[pn]=['FileExists("%wpipath%\\PathToExe\\MainExe.exe")'];

    I track done a change in installer.js (on line 1080 WPI 8.6.3)

    case 'CMD': 
    cmd="CMD /C " + cmd;
    fsoCmd=true;
    break;

    As added by myselfidem, to add the possibility to choose the CMD command in WPI menu, the following changes are needed in configwizard.js

    on line 363:

    CommandsMenuBar.addNewChild("cmd_dos2", 11, "dos_cmd", "Cmd", false, "", "");

    on line 632:

    case 'dos_cmd':
    HandleCommandsSelectionMenu("{CMD} ");
    break;

    Regards.

  5. Adding getosver to the commandlines is getting messy... (Might not happen)

    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

  6. Hi,

    I bumped into a problem an after quite a time spend investigating, I finally got the solution that I want to share.

    I setup a nLite CD with the following parameters as unattented parameters :

    ;
    ; nLite unattended settings
    ; (don't post it on the net, it's not important for debugging)

    AdminPassword = "admin"
    CDKey = "you don't need to know that"
    ComputerName = INSTALL
    FullName = "NAME"
    OrgName = "OrgName"
    Language = Français (France)
    Locale = Français (France)
    Keyboard = Fran‡ais
    DomainAdmin =
    DomainPass =
    JoinDomain =
    JoinWorkgroup = WORKGROUP

    Every run fine, until I tested it in VirtualPC. Around T-30 minutes, just after network setup, the Computer reboots, restarting the installation.

    This is beacuse I do have, on my network, another computer that has the same "ComputerName".

    Based on that, my advice would be not to set "ComputerName" on an unattented setup.

    Hope it helps someone.

    Gilles

  7. I realize this is and old thread, and I have searched this forum and the net for the answer but have been unable to come across one. I used to have this problem a couple years ago, then for some reason it went away for a while, and now I have been experiencing this problem again for some time. I can't remember the various ways I have gone about building my unattended installs to tell why sometimes it does this and other times not, but I do know that when it is happening I have to leave my network cable disconnected from the internet in order for an unattended install to continue past the T-30 min remaining mark without rebooting and restarting in and infinite loop. I also can't recall if i experience this in VMWare or not to be able to tell if maybe it is a driver issue or not. So i am basically wondering if this issue has been resolved by someone or if anyone has any ideas. Thanx

    Hi,

    I started playing around with nLite no that long ago. I bumped into the very same problem, and finally fixed it.

    Your are trying to set up a computer with a "ComputerName" that is already connected on your network.

    In your unattented parameters unset "ComputerName"

    Gilles

×
×
  • Create New...