/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Why use a custom action?
Just add the entry to the Registry table.

Use a transform for a vendor msi.
Answered 06/15/2009 by: AngelD
Red Belt

Please log in to comment
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
Answered 06/16/2009 by: McRip
Orange Senior Belt

Please log in to comment
0
Create a new registry component with the entry, condition it with REMOVE~="ALL" and associate it with a new or existing feature.
Answered 06/16/2009 by: VBScab
Red Belt

Please log in to comment
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.
Answered 06/17/2009 by: sk
Senior Yellow Belt

Please log in to comment
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?!?!?
Answered 06/17/2009 by: VBScab
Red Belt

Please log in to comment
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
Answered 06/17/2009 by: McRip
Orange Senior Belt

Please log in to comment