Rebooter Posted July 14, 2007 Share Posted July 14, 2007 I'm trying to get some batch files to run from the 'RunOnce' section during an nLite unattended install. Here's an example:%PROGRAMFILES%\Utils\shortcuts.cmd%PROGRAMFILES%\Utils\addpaths.cmdI'm getting an error message during install after adding these lines (the batch files were tested and known to work correctly). I can't remember the exact error, but I believe it was something along the lines of 'Invalid path in registry...'. This was the only change I made to the disc, so I'm assuming it must be the syntax of using the %ProgramFiles% system variable. Do lines need to be in double quotes, do I need to escape the double quote characters?What's the syntax for running batch files from RunOnce? Also, I wasn't sure if nLite did anything to these lines to prepare them, etc... Link to comment Share on other sites More sharing options...
neo Posted July 14, 2007 Share Posted July 14, 2007 Hi ...!You are using STRING (REG_SZ) values in RunOnce process.You hav to use STRING EXPAND (REG_EXPAND_SZ) for storing paths for executable files cotaining environment variables. for more help ...post script that is used to add reg entries into RunOnce process. Link to comment Share on other sites More sharing options...
Rebooter Posted July 15, 2007 Author Share Posted July 15, 2007 Hi ...!You are using STRING (REG_SZ) values in RunOnce process.You hav to use STRING EXPAND (REG_EXPAND_SZ) for storing paths for executable files cotaining environment variables. for more help ...post script that is used to add reg entries into RunOnce process.I'm not using a script directly, just trying to use the 'RunOnce' page in nLite in the 'Unattended' section. If nLite creates the key as REG_SZ, I don't see any way to change it. Link to comment Share on other sites More sharing options...
neo Posted July 15, 2007 Share Posted July 15, 2007 Post your nLite.inf | located into I386 folder named nLite.in_ Link to comment Share on other sites More sharing options...
maveric73ph Posted August 6, 2007 Share Posted August 6, 2007 Hello, I have been using nlite for quite a while now. However, I have always had this problem when using the RunOnce feature in the Unattended portion. My problem is how to use it to install RogueSpear's dotnet 3 switchless silent installer on first boot. I can't seem to find any info about this nlite feature.I tested RunOnce by placing this line in the Command to add Box... %SOURCE%\RUNONCE\RogueSpear_dotNET30_Lite.exe. But it just pops out a DOS window on first boot. I know I'm doing something wrong.Please can anybody teach me how to use the RunOnce feature in nlite.Thank you in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now