I want to import a registry file with "universal syntax" to add a context menu entry during install.
I am extracting my application to temp folder and running from there. To add the context menu item, I have to import the following registry value
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Add to My App\command]
@="\"C:\\Documents and Settings\\username\\Local Settings\\Temp\\Myapp.exe\" %L"
Here, I don't want to use absolute path so that it is not dependent on the user or the machine. I want to use it with some universal syntax like
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Add to My App\command]
@="\"%Temp%\\Myapp.exe\" %L"
I have tried it with no success. It adds the value "add to my app" in the context menu but cannot find the path. Is there any way to do this?
I am sure that I can find some solution through this forum.
