How can I get NSIS to install and execute files from a temp directory?

前端 未结 3 549
囚心锁ツ
囚心锁ツ 2021-02-07 18:24

I\'m using the following NSIS script:

Name \"My app wrapper\"
Outfile \"MyAppSetup.exe\"
InstallDir $TEMP\\MyApp\\Install
Function .onInit
SetSilent silent
Funct         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 18:50

    This is another way to do it

    Function .onInit
    
        InitPluginsDir
            File /oname=$PLUGINSDIR\test.exe "test.exe"
    
    FunctionEnd
    
    Section "Exec file" SecFile
    
        nsExec::Exec $PLUGINSDIR\test.exe
    
    SectionEnd
    

提交回复
热议问题