I am missing something here for sure but I can't work it out.
All works fine using:
InstallDir "$PROGRAMFILES\SGCS"
which of course is on the C:\ drive.
But I also need to write a file to a mapped drive
Section "Network Support" SEC02
SetOverwrite ifnewer
File "h:\mybox\reports\Your_Class_Data_File.mdb"
SectionEnd:
When I compile it generates this error:
File: "h:\mybox\reports\Your_Class_Data_File.mdb" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in script "E:\PROJECTS\SGCS_V3Complete\installerFILES\SGCSinstaller.nsi" on line 89 -- aborting creation process
How can I install to 2 separate locations?
4 posts
Your code should look something like this:
VytautasSection "Network Support" SEC02
SetOverwrite ifnewer
SetOutPath "h:\mybox\reports\"
File "Your_Class_Data_File.mdb"
SectionEnd:
Just tried that code and got the same sort of error
error as shown:
Section: "Network Support" ->(SEC02)
overwrite = 3, last_overwrite = 3
SetOverwrite: ifnewer
SetOutPath: "h:\mybox\reports\"
File: "Your_Class_Data_File.mdb" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in script "E:\PROJECTS\SGCS_V3Complete\installerFILES\SGCSinstaller.nsi" on line 90 -- aborting creation process
The same file is being copied in section 1 to the InstallDir, it seems not to be able to find the file a second time to write to this other location???
error as shown:
Section: "Network Support" ->(SEC02)
overwrite = 3, last_overwrite = 3
SetOverwrite: ifnewer
SetOutPath: "h:\mybox\reports\"
File: "Your_Class_Data_File.mdb" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in script "E:\PROJECTS\SGCS_V3Complete\installerFILES\SGCSinstaller.nsi" on line 90 -- aborting creation process
The same file is being copied in section 1 to the InstallDir, it seems not to be able to find the file a second time to write to this other location???
file command should point to the file on the machine on which the script is being compiled.
Please attach full script if you still can not figure this ouot.
Vytautas
Please attach full script if you still can not figure this ouot.
Vytautas