E
E
Evgeny Savitsky2014-12-07 23:09:12
Installer
Evgeny Savitsky, 2014-12-07 23:09:12

InnoSetup - the question is how to register in the registry and after installation, register other values?

It's about InnoSetup: www.jrsoftware.org/isinfo.php
How to register registry changes like these in InnoSetup?
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ / d xxx.xxx.xxx.xxx:xxxx /f
And then, after the installer has completed the .exe file, I need to return these keys to their native values:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
/v ProxyEnable /t REG_DWORD /d 0 /f How to do it? I tried the example below but it doesn't work.
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyEnable"; ValueData: 1
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyServer"; ValueData: "xxx.xxx.xxx.xxx:xxxx"
[Run]
Filename: "file.exe";
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyEnable"; ValueData: 0
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyServer";
it is necessary to delete value As it is correct after working out Filename: "file.exe"; write changes to the registry?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question