View Full Version : How can I save in the Registry the name of the installer?

12-10-2003, 03:57 PM

I would like to save the name of the setup file during the installation process, so that my application can retrieve it. How can I do that?

Thanks a lot in advance.

12-10-2003, 04:11 PM
You can use ProductName property in registry.

12-10-2003, 04:21 PM
Thanks a lot for your reply.

Perhaps is needed that I explain myself better:

Instead of distribuying my application with a file named "setup.exe", I am using the naming convention "MyApplicationSetupXX"; where XX correspond to the version of the setup.

That's why I would like to save the name of the setup file in the Registry. So that my application can display it an "About" dialog the name "MyApplicationSetupXX.exe", in order to troubleshoot versioning issues.

12-10-2003, 04:51 PM
If the name stays constant, and XX corresponds to your product version, you can use the following in registry.