简体   繁体   中英

Adding MS Access and Excel files inside NSIS Installer package

I am creating an NSIS Installer package sample for a project I am working on. I need certain MS Access and Excel files to be automatically placed in the documents folder directory; "C:\\User\\MyName\\Documents\\PexApp\\Storage", instead on my application having to connect to a network sharefolder to get the files. I want offline installation to be possible.

There are three excel files that are supposed to go to the PexApp folder and two Access database files that are supposed to go to the Storage folder inside the PexApp folder.

How do I add the files inside the installer package (if it is possible) so that they may be available for offline placement through the installer and what scripts or methods should I use or consider?

OutFile "MySetup.exe"
Name "MySetup"
RequestExecutionLevel user

Section

SetOutPath "$DOCUMENTS\PexApp"
File "Excel1.xls"
File "Excel2.xls"
File "Excel3.xls"

SetOutPath "$DOCUMENTS\PexApp\Storage"
File "Access1.db"
File "Access2.db"

SectionEnd

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