Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2001
    Location
    Northam, Western Australia
    Posts
    98

    regedit /s equivalent

    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

  2. #2
    Join Date
    Dec 2001
    Location
    Northam, Western Australia
    Posts
    98

    This way

    I've really answered my own question by going this way:

    Registry.SetValue(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\R un", "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

  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: regedit /s equivalent

    You could try using a File.Run action instead, something like this:

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts