Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OpenWithMyProgram]
@="My Program"
[HKEY_CLASSES_ROOT\*\shell\OpenWithMyProgram\command]
@="c:\\Program Files\\MyProgram.exe \"%1\""
1) My question is how I write the above registry so that it’s not hard coded? If user changes the drive from C:\ to may be D:\ my program will fail.
2) In order to use the above key in Advanced Installer, I need to go to my register to export the above key and import it into Advanced Installer in order to use that key. I don’t know why I can’t just create the key in Advanced Installer. I have try using Advanced Installer to create the same key by using add key but after installing my program the key won’t work. It creates an entry but it does not register in context menu. Any idea how I should be doing this.
Thanks
FOLLOW US
Get the latest news in Application Packaging