Sam_Sharp,
Thanks for your response.
@Sam_Sharp wrote:
Probably not easily....if you think about your executable, you build it *before* you build your installer - so when you change your installer, nothing changes in the executable and the installer just packages up the components you specify. The executable has no knowledge of its installer (or that it was was even 'installed' rather than just distributed.
Here are a couple of options:
- You might be able to read the installer version from the registry to find it in the add/remove programs: http://stackoverflow.com/a/13526002
- Use a pre/post build step to write the version number somewhere and include it in the installer which you can read
- Sync your executable and installer version number (e.g. the Deploy toolkit does this for you but you could do it manually using scripting in a pre-build VI)
I felt the first option of reading from registry is better option than other two. Reason is that, I want to make use of the auto increment in build specification. Unfortunately, I don't see my installed software listed under the registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
I'm thinking about third option of using deploy toolking and using some script in pre-build VI to copy the executable version into installer version. I'm hearing this deploy toolkit first time. Can you give me some details?
--
Thanks,
Ajay.
--
Ajay MV