2/4/14

How to do a silent (netsetup) installation while UAC is enabled?


To be able to do a silent setup while UAC is enabled on a Windows 7 or Windows Vista machine the following free Microsoft program can be used: ApplicationCompatibilityToolkitSetup.exe (about 12.2MB) from the 'Microsoft Application Compatibility Toolkit 5.6 '
First install the file ApplicationCompatibilityToolkitSetup.exe on a Windows Vista or Windows 7 machine.
Then go to Start -> All Programs -> Microsoft Application Compatibility Toolkit -> Compatibility Administrator(32-bit)
Under 'Custom Databases' right click on 'New Database(1)[Untitled_1]' and select 'Create New' and then 'Application Fix... Ctrl+P'
In the field 'Name of the program to be fixed' enter a name for example dexplore, in the field 'Name of the vendor of the program:' enter the vendor name, then using the 'Browse...' button to go to the program location and select the wanted program for example 'dexplore.exe', then skip the 'compatibility mode' page by clicking on 'Next' and check the boxes 'RunAsAdmin' and 'RunAsInvoker', and click on 'Next' and 'Finish'
Then Right click on 'New Database(1)[Untitled_1]' again and repeat the previous steps for the programs 'regedit.exe', 'msjavx86.exe' and 'setup.exe'
Finally select 'New Database(1)[Untitled_1]' and click on the floppy disk icon for saving these settings as a .sdb file, for example OE102Bnetsetup.sdb
Before launching the OpenEdge silent install script the following command will need to be executed as Administrator on the machine where OpenEdge need to be installed:
'sdbinst OE102Bnetsetup.sdb'
(The program sdbinst is part of a standard installation of Windows Vista and Windows 7)
The above command will prevent UAC warning messages from appearing during the silent install procedure.
After the OpenEdge silent install is done the following command can then be executed: 'sdbinst -u OE102Bnetsetup.sdb'
Another way to do a silent install on a Windows Vista or Windows 7 machine is to disable (temporarily) UAC (it does involve a reboot of the Windows machine though).
To disable UAC using the command line:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
To enable UAC using the command line:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
After you enable or disable UAC you will have to reboot the computer for the UAC change to take effect. (using an .sdb file does not need Windows reboots)
More information about silent netsetups can be found in the following solution:

Không có nhận xét nào:

Đăng nhận xét