1
我有2個exe安裝文件。其中之一是我使用安裝項目構建的C#應用程序,另一個是必須使用我的應用程序的攝像頭驅動程序。如何將2 .exe與NSIS結合使用?
例如:myApp.msi + camDri.exe = new.exe
任何人都可以公會我該怎麼做,與NSIS?
我有2個exe安裝文件。其中之一是我使用安裝項目構建的C#應用程序,另一個是必須使用我的應用程序的攝像頭驅動程序。如何將2 .exe與NSIS結合使用?
例如:myApp.msi + camDri.exe = new.exe
任何人都可以公會我該怎麼做,與NSIS?
Name "MyApp"
Outfile "MyAppSetup.exe"
RequestexecutionLevel admin
InstallDir "$Programfiles\MyApp"
Page Directory
Page Instfiles
Section
Initpluginsdir
Setoutpath $pluginsdir
File "camDri.exe"
ExecWait '"$pluginsdir\camDri.exe" /silent' ;I don't know the correct silent switch
Delete "$pluginsdir\camDri.exe"
File "myApp.msi"
Setoutpath $instdir
Exec '"msiExec" /q /i "$pluginsdir\myApp.msi" TargetDir = "$INSTDIR"'
SectionEnd
這是一個非常簡單的例子,你應該看看與NSIS船舶有關卸載和創建開始菜單快捷鍵等細節的例子...