当前位置:网站首页>Advancedinstaller installation package custom action open file

Advancedinstaller installation package custom action open file

2022-07-06 16:16:00 Larry_ Yanan

Advancedinstaller Install the package custom action to open the file

Say something grumbling

Let's talk about my project requirements first , Simply put, it needs to be at the end of the program installation or during the process , Call the two installation files in my installation package . This looks simple , But there is too little information on the Internet , No one said it clearly , I have taken many detours .
Mainly for my own situation , Make a note of , It's also convenient for others to try .

The following is an analysis of several practices that can be found on the Internet , And the final method

The pit passed

The first pit

of Advancedinstaller I won't go into details about creating installation packages , During the creation process, I remember that one of the items can be set , Call a file after the installation . You can also find this setting after entering the interface
 Insert picture description here

In this dialog , You can simply define some settings of dialog boxes in the installation process , In this final leave page , By checking , Open the file you want to open .

 Insert picture description here
This is OK , The program can also be adjusted , But you will soon find the problem , That is, you can only call one .
Yes , You write it side by side [#xxx.exe][#xxxx.exe] That's not going to work , Only the first one will be opened ; As for whether you can add a check box in the interface , It is also not feasible .
Because I need to call and open two programs , Even more , So the first method is definitely not good .

The second pit

The same interface
 Insert picture description here
The same interface , You will find that there are custom operations , Then I'm curious about whether I can customize several operations of opening files , Then list it here
The result is found here , You can see that you can add the file you want to install and open , There should be many other operations that can be set , I didn't study .

 Insert picture description here
The added files are all in your packaged files , Not a native file .
You can see that I have defined two operations
 Insert picture description here

Each operation is to open the file , You can set Execution Options ( The first is to set administrator permissions ( Cannot be set here ) Well , The second is to wait for the execution of your open file , Then continue to complete its own installation package installation process )、 The third one will remind you of the wrong operation , Try it yourself and you'll know what effect it is
Then use these two operations , You can set it in the initial interface
 Insert picture description here
That's it , In fact, I have been using this method for a long time , until …
I need to choose C Installation path of disk , It is found that these custom actions cannot be started , I can't open these files . And you can see , I can't set administrator permissions at all , It's useless to run the installation package with administrator privileges . Just when I was troubled , Found a third way

The scene of mental retardation ahead …

The final way

 Insert picture description here
There are several options in the upper left corner of the user-defined operation , Click on any one of exe The installation files , You can add it
 Insert picture description here
Pictured , Every file operation can be moved up and down , What I choose here is to call after the installation , So immediately , There may be some unnecessary troubles after the execution option is checked , I didn't check .
If you are in the installation process , Call in a step , The execution time is actually optional , But I don't know much , Interested friends can try it on their own .
 Insert picture description here
In this case , Even if I don't have full permission to check the execution option , I may install on C disc , And install the installation package in my package . Some necessary plug-ins need to be installed 、 Library and auxiliary tools , This step is still very important , And it's relatively simple , It's just that there are too few online materials , I tried for a long time before I found this .
That's all !!

原网站

版权声明
本文为[Larry_ Yanan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060920129788.html