Calling reg.exe in CustomAction
I would like to run reg.exe in SystemFolder in a CustomAction but I don't know how to set the commandline for it.
Via CMD command it e.g looks like this:
"reg add "HKCU\Software\Sysinternals\Streams" /v EulaAccepted /t REG_DWORD /d 1 /f"
But how does the commandline look like when I call reg.exe directly in a CustomAction?
Thanks for help in advance
Via CMD command it e.g looks like this:
"reg add "HKCU\Software\Sysinternals\Streams" /v EulaAccepted /t REG_DWORD /d 1 /f"
But how does the commandline look like when I call reg.exe directly in a CustomAction?
Thanks for help in advance
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
AngelD
14 years ago
Posted by:
McRip
14 years ago
Streams must be called after a reboot when my app got uninstalled thats why I have to set this registry entry during uninstall proccess.
If you know to set this entry into the registry table affecting the uninstall proccess so please tell me.
I t woul be kind if you could help me in this issue.
Thanks in advance
If you know to set this entry into the registry table affecting the uninstall proccess so please tell me.
I t woul be kind if you could help me in this issue.
Thanks in advance
Posted by:
anonymous_9363
14 years ago
Posted by:
sk
14 years ago
The cumstom action line should look the same as a command line. Since reg/reg.exe is in the path you could simply use reg add "HKCU\Software\Sysinternals\Streams" /v EulaAccepted /t REG_DWORD /d 1 /f
For programs not in the path one could use for example "[ProgramFilesFolder]directory\appname.exe" and for spaces quotes are needed. VBS's solution is probably more elegant.
For programs not in the path one could use for example "[ProgramFilesFolder]directory\appname.exe" and for spaces quotes are needed. VBS's solution is probably more elegant.
Posted by:
anonymous_9363
14 years ago
Posted by:
McRip
14 years ago
ORIGINAL: VBScab
Create a new registry component with the entry, condition it with REMOVE~="ALL" and associate it with a new or existing feature.
This doesn't work for me.
I don't unfortunately know much about VBS...
I tried performing it with the commandline and it works great.
Thank you very much.
Cheers
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.