PDA

View Full Version : regedit /s equivalent


John_Klassek
12-16-2003, 01:59 AM
From APMS5 I run:

File.Open("\\Setup\\ClassicIT\\citslogo.reg", "", SW_SHOWNORMAL);

However, I want this registry update to be silent, without the Regedit asking me whether I want to update... etc.

In the DOS batch days, I think I used to write something like:

regedit /s citslogo.reg

Is there an equivalent parameter within APMS5 ?

Thanks.

John

John_Klassek
12-16-2003, 03:13 AM
I've really answered my own question by going this way:

Registry.SetValue(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Ru n", "ClassicRun", "C:\\Windows\\classic.exe", REG_SZ)

as this delivers a silent registry update.

What the problem was that the Regedit update confirmation was activating part way through a series of subsequent 16 different updates and installations, and was no way of pausing the

File.Open("\\Setup\\Ultra\\citslogo.reg", "", SW_SHOWNORMAL);

Cheers,

John

Lorne
12-16-2003, 09:22 AM
You could try using a File.Run action instead, something like this:

File.Run(regedit.exe, "/s citslogo.reg");