Jump to content

Run once cmds in nlite GUI


Recommended Posts

Posted (edited)

Hi,

I recently created a nlited windows-xp-sp3-fra cd. All the modifications I made are succesfully applied, except the gui run once cmds integrated in nlite.

Here are my cmds :

COPY /Y /V %SOURCE%\PLUS\wpa.dbl %SYSTEMROOT%\system32
regedit /s %SOURCE%\PLUS\scnotificationsfix.reg
regedit /s %SOURCE%\PLUS\ieconnectionsfix.reg
regedit /s %SOURCE%\PLUS\cmdpromptmenufix.reg
%SOURCE%\PLUS\toggleql 1
%SYSTEMDRIVE%\Program Files\Internet Explorer\IEXPLORE.EXE" "http://www.microsoft.com/genuine/validate/?displaylang=fr

Is there something wrong with this cmds ? They don't produce any effect at all on the first login.

Edited by hahahafr

Posted

hahahafr, the %Source% variable has a trailing backslash (\), so now you have two. %SYSTEMDRIVE% does not have the trailing backslash, so I would have expected the last command to have worked. Oops, just noticed you have screwed up quotes on the last one. If you have more questions/problems, please attach (not paste) your Last Session.ini. Make sure to always start with a fresh copy of your CD files/folders, do all your work in one nLite session and integrate only one SP. Please report when you have a solution, so others can benefit. Enjoy, John.

Posted (edited)

Yes I just noticed that nlite use the SourcePath String located in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup and this string has a backslash.

The code used in NLITE.CMD :

for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%i

::your commands using %SOURCE%

EXIT

Going to try with the quotemarks and the backslash problems fixed.

Edited by hahahafr

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...