Set up a custom action screen

I am creating a basic msi project using the installsheild 2012 premier league. I have two problems.

1.) MSI should start the user exe after it has created the folders and files of the application being installed. This only needs to be done once the application is installed.

2.) MSI should also inform that the user exe is being launched, which language the user has chosen to run MSI.

I have no information about problem 2. As for problem 1, here is my attempt, as described below:

Now I have the setup, it starts right away at the beginning, before creating the product files and folders. Below are my settings

enter image description here

and click "Next" to go to the screen below.

enter image description here

Now, to run a custom exe only after creating files and folders, if I changed the In-Script execution from "Immediate execution" to "Executing execution" in the first image above and proceed to the next screen, I get the following error with any combination that I tried enter image description here

Please help me here. Thank you for your time.

+4
source share
1 answer

To compile In-Script Execution, you must use deferred or commit . If your user actions require administrator privileges, they should be deferred or fixed in the System context .

Deferred or committed actions are not performed in InstallUISequence, therefore, in the Insert into Sequence dialog box, make sure the Set User Interface Sequence option is set to:

<Absent from sequence> 

Pending actions are performed until InstallFinalize . Since you want to run your custom action after installing the files, you can install the Install Execute Sequence command to:

 After InstallFiles 

The installation language is stored in the ProductLanguage property. This way you can use it directly on your command line custom action, for example:

 [ProductLanguage] 

This property contains the language identifier. Here you can find the list of identifiers: http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx

+5
source

Source: https://habr.com/ru/post/1381697/


All Articles