Domanda

Passing installation path selected from Destination Folder Dialog as input to a DLL from a custom dialog.

I am designing a basic MSI installer project using InstallShield 2012. I have designed a custom dialog to get user login info etc. in a custom dialog and it passes the details to the DLL which then creates a database accordingly. However I need to know how to pass the installation path [chosen in Destination Folder Dialog] as input to the dll so my DB is created inside the proper folders. My DLL action is executed after Installfiles.

Thanks in advance !! I'd be happy to explain if you are unable to understand the above ..

È stato utile?

Soluzione

You can't pass the values to the DLL directly, like in a command line.

You would store the values entered by user in a property, then your DLL custom action uses MsiGetProperty to get these properties from MSI session.

If your custom action needs to be run elevated during the commit phase of the installer, you'll have to pack both values in CustomActionData property. See Obtaining Context Information for Deferred Execution Custom Actions for more information.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top