Jump to content

Recommended Posts

Posted

Hi,

I'm having problems importing my reg file...

I have 2 kind: one for all user, and one just for me.

So I have one called @ the T-12 stage, imported by XPinstall called by cmdline.txt. This seems ok.

I then put in the RunOnceEx key some other information concerning some hotfixes and my personnal registry entries that should be imported in the RunOnceEx time...

Everything runs, no errors, but my config isnt imported corectly... I need to import the reg file in windows, reboot, and now my config is back...

What could prevent the same reg file from making changes at the RunOnceEx? I reboot the computer just after its been imported so maybe the changes arent saved? What do you think?

thanks guys

XPinstall.xml (ran @ T-12)

...
 <item name="Configuration">
  <file name="Programs configuration" command='execute' program='wscript' arguments='"#SOURCEPATH#\PROGRAMMES\scripts\config.js"'></file>
           <file name="Accounts onfiguration" command='execute' program='regedit' arguments='/s "#SOURCEPATH#\PROGRAMMES\reg\hkcu.reg"'></file>
 </item>
...

config.js

Shell.RegWrite(RunOnceEx + "\\Title", "Application de deux correctifs de sécurité", "REG_SZ");

Shell.RegWrite(RunOnceEx + "\\a04\\", "Account configuration", "REG_SZ");
Shell.RegWrite(RunOnceEx + "\\a04\\1", "wscript " + SourcePath + "PROGRAMMES\\scripts\\nettoyage.js", "REG_SZ");

Shell.RegWrite(RunOnceEx + "\\z01\\", "Reboot", "REG_SZ");
Shell.RegWrite(RunOnceEx + "\\z01\\1", "shutdown -r -f -t 1 -c \"Redémarage final de l'ordinateur\"", "REG_SZ");

nettoyage.js

Shell.Run("regedit /s" + SourcePath + "PROGRAMMES\\reg\\perso.reg", 0, true);


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