当前位置:网站首页>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 !!
边栏推荐
- D - function (HDU - 6546) girls' competition
- Penetration test 2 --- XSS, CSRF, file upload, file inclusion, deserialization vulnerability
- Quick to typescript Guide
- Opencv learning log 28 -- detect the red cup cover
- [exercise-3] (UVA 442) matrix chain multiplication
- input 只能输入数字,限定输入
- Borg maze (bfs+ minimum spanning tree) (problem solving report)
- Codeforces Round #799 (Div. 4)A~H
- Codeforces round 797 (Div. 3) no f
- Sword finger offer II 019 Delete at most one character to get a palindrome
猜你喜欢
[teacher Gao UML software modeling foundation] collection of exercises and answers for level 20 cloud class
Candy delivery (Mathematics)
分享一个在树莓派运行dash应用的实例。
Flag framework configures loguru logstore
Flask框架配置loguru日志库
7-1 understand everything (20 points)
Pyside6 signal, slot
It is forbidden to trigger onchange in antd upload beforeupload
力扣——第298场周赛
树莓派4B安装opencv3.4.0
随机推荐
Alice and Bob (2021 Niuke summer multi school training camp 1)
[exercise-9] Zombie's Treasury test
树莓派4B安装opencv3.4.0
1005. Maximized array sum after K negations
Specify the format time, and fill in zero before the month and days
Truck History
Openwrt build Hello ipk
Is the sanic asynchronous framework really so strong? Find truth in practice
b站 實時彈幕和曆史彈幕 Protobuf 格式解析
Read and save zarr files
浏览器打印边距,默认/无边距,占满1页A4
图图的学习笔记-进程
Determine the Photo Position
Educational Codeforces Round 130 (Rated for Div. 2)A~C
[exercise -10] unread messages
Socket communication
Classic application of stack -- bracket matching problem
Data storage in memory & loading into memory to make the program run
Luogu P1102 A-B number pair (dichotomy, map, double pointer)
The concept of C language array