I made a program that is a add-on to another program, so it needs to be installed on the same folder as the "master" program.
That program does not have a specific entry on Registry where the installation folder is located, so i have 2 solutions:
1- I can search the exe file, for example c:\program\editor\program.exe
But when i try to use the property defined on CUSTOM BEHAVIOR -> SEARCH in PRODUCT INFORMATIOn -> INSTALL PARAMETERS -> APPLICATION FOLDER, i get on the installer text box "c:\program\editor\program.exe"
I would need some way to strip the "program.exe" from the search to be able to use it
2 The master program has 2 keys with "uninstall" info. One for x86 and another to x64.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1EAC1D02-C6AC-4FA6-9A44-96258C37C812EU}_is1
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EAC1D02-C6AC-4FA6-9A44-96258C37C812EU}_is1
I can retrieve these 2 with a search, but i would need some way to do a "if operation system is x86 use [FOLDER_X86], if operation system is x64 use [FOLDER_X64].
can you please help me?
FOLLOW US
Get the latest news in Application Packaging