Archive: Regedit RunOnce How to get the setup file path


Regedit RunOnce How to get the setup file path
Hi all,

My setup file need to restart computer, and I want to continue, so I neet to regedit the RUNOnce Key, but how can i get the current setup file path to regedit?


thanks a lot,hope to get answer


$EXEPATH

The full path of the installer executable.
4.9.2.16 WriteRegStr
root_key subkey key_name value
Write a string to the registry. See WriteRegExpandStr for more details.

WriteRegStr HKLM "Software\My Company\My Software" "String Value" "dead beef"

Thank a lot, I appreciate your help very much.