I can be anything
I can be anything

Reputation: 184

Visual Studio 2012 Install Shield LE Installer Class

I have been googling away for a couple hours and can't find what I'm looking for. I'm creating an installer using Visual Studio and InstallShield LE. Those are the only tools I'm currently allowed to use. I have a custom action exe that runs and performs some tasks that require admin privileges. I have already set the Require Administrative Privileges to Yes. When the installer runs the user is prompted to elevate permissions but the exe still fails says permission denied. If I have the user Right Click and select run as administrator on the setup.exe then the custom action is able to successfully run. Am I missing something?

Also what exactly does the Files --> installer class do? and how do you use it.

files installer class

Install shield provided this info

Select this option to ensure that at installation time, the assembly’s Install, Commit, Rollback, and Uninstall methods will be called at the appropriate time.

but how does it do that is there an interface that needs to be implemented?

Upvotes: 1

Views: 1491

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55571

IMO, you don't want to go there. Installer Class custom actions (InstallUtil) are notoriously fragile and have many disadvantages. But if you wrote one, this is how you would tell InstallShield to consume it.

If you do need to write managed code custom actions, the much better solution is to use WiX DTF custom actions. These can be packaged as a merge module and then consumed by IS LE.

Upvotes: 1

Related Questions