简体   繁体   中英

Install contained setup from temporary folder in Inno Setup

My application requires a computer voice.

I have programmed this computer voice, so I simply put the voice computer setup into my Inno Setup script like this and run it during the installation of my appplication:

[Files]
Source: "d:\dev\projects\voice\compiled\upload\voice_setup.exe"; DestDir: "{app}\redist\tts\";

[Run]
Filename: "{app}\redist\tts\voice_setup.exe"; StatusMsg: "Installing voice"; Parameters: "/VERYSILENT"; 

I did it like this because I imagined the user might want to distribute the voice setup. However, I don't want this anymore. Instead, the user should not "get in contact" with this voice setup file.

Obviously I don't find the correct search term to find a sample on how to solve this problem.

Can anybody help and tell me how I could install the contained voice setup without actually copying the voice setup to a directory where the user could easily find it?

Deploy the sub-installer to {tmp} :

[Files]
Source: "d:\dev\projects\voice\compiled\upload\voice_setup.exe"; DestDir: "{tmp}";

[Run]
Filename: "{tmp}\voice_setup.exe"; StatusMsg: "Installing voice"; \
    Parameters: "/VERYSILENT";

The {tmp} gets automatically deleted at the end of the installation.


Though as it is your (sub-)installer, why don't you merge its code into your main installer?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM