当前位置:网站首页>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
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 .
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
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 .
The added files are all in your packaged files , Not a native file .
You can see that I have defined two operations
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
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
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
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 .
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 !!
边栏推荐
- Vs2019 initial use
- Penetration test (8) -- official document of burp Suite Pro
- Auto.js入门
- 栈的经典应用—括号匹配问题
- 1005. Maximized array sum after K negations
- Browser print margin, default / borderless, full 1 page A4
- QT实现圆角窗口
- 分享一个在树莓派运行dash应用的实例。
- 第 300 场周赛 - 力扣(LeetCode)
- Some problems encountered in installing pytorch in windows11 CONDA
猜你喜欢
随机推荐
QT实现窗口渐变消失QPropertyAnimation+进度条
Socket communication
Sanic异步框架真的这么强吗?实践中找真理
力扣——第298场周赛
7-1 understand everything (20 points)
Codeforces Round #803 (Div. 2)A~C
F - birthday cake (Shandong race)
Codeforces Round #803 (Div. 2)A~C
Data storage in memory & loading into memory to make the program run
Shell Scripting
Frida hook so layer, protobuf data analysis
Is the sanic asynchronous framework really so strong? Find truth in practice
1605. Sum the feasible matrix for a given row and column
C language learning notes
Penetration test 2 --- XSS, CSRF, file upload, file inclusion, deserialization vulnerability
Some problems encountered in installing pytorch in windows11 CONDA
875. 爱吃香蕉的珂珂 - 力扣(LeetCode)
input 只能输入数字,限定输入
[exercise-9] Zombie's Treasury test
1013. Divide the array into three parts equal to and