/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (6)

Posted by: AngelD 14 years ago
Red Belt
0
Why use a custom action?
Just add the entry to the Registry table.

Use a transform for a vendor msi.
Posted by: McRip 14 years ago
Orange Senior Belt
0
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
Posted by: anonymous_9363 14 years ago
Red Belt
0
Create a new registry component with the entry, condition it with REMOVE~="ALL" and associate it with a new or existing feature.
Posted by: sk 14 years ago
Senior Yellow Belt
0
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.
Posted by: anonymous_9363 14 years ago
Red Belt
0
VBS's solution is probably more elegant.Elegant? Pah! It's actually how it's supposed to be done! Why else would there be a Registry table?!?!?
Posted by: McRip 14 years ago
Orange Senior Belt
0
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.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ