Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: pagesoft on November 03, 2011, 08:03:43 AM

Title: How to put files in a folder not related to {app}
Post by: pagesoft on November 03, 2011, 08:03:43 AM
I can not figure out how to specify a destination folder which is un-related to app install folder.  I have several folders with files in them that I want the same folders created on the install system with the files copied to them.
Title: How to put files in a folder not related to {app}
Post by: Randem on November 03, 2011, 08:20:40 AM
It would be helpful to have an example...
Title: How to put files in a folder not related to {app}
Post by: pagesoft on November 03, 2011, 08:45:55 AM
{app} = c:Pageosftyyyxxxzzz
 
1. Create on the install computer the collowing folders
c:driversrrr        (has files)
c:driversrrrdfini (has files)
c:videorrrdfdb    (no files)
 
2. Copy all files if any on the source computer in each folder listed above to the install computer folders with the same path and names.
Title: How to put files in a folder not related to {app}
Post by: pagesoft on November 03, 2011, 08:49:11 AM
It would be nice if would create constants or properties that allow us to define paths.
Title: How to put files in a folder not related to {app}
Post by: Randem on November 03, 2011, 08:50:21 AM
Ok, being that you are not following the Standard Windows practices for deploying your app and it's data, you will need to use the templates to change the DestDir:. You will need to place the line with the paths that you like in the template and let InnoScript replace the generated line with the one that you want into the script.
Title: How to put files in a folder not related to {app}
Post by: Randem on November 03, 2011, 08:53:19 AM
BTW: To allow you to create constants you will have to solicit the aid of the Inno Setup Precompiler. I believe you can get that in the Inno Setup Starter Pack and you can download it from the Inno Setup website at http://jrsoftware.org (http://jrsoftware.org)
Title: How to put files in a folder not related to {app}
Post by: pagesoft on November 03, 2011, 08:57:59 AM
I will only say this about not following standards:
 
The program I am writing goes to a billon dollar customer and they dictate where data is to be stored and what the format will look like.  I have little to no control over many aspects of the program.
 
Have a good day.
Title: How to put files in a folder not related to {app}
Post by: Randem on November 03, 2011, 09:00:38 AM
If you want to get InnoScript to place the data where you would like it to be then the data has to start from those locations also.
 
Example:
 
Destination: C:Pagesoftxxx
 
The source would need to be
 
Source: YourDevelopmentfolderxxx
 
Likewise:
 
Destination: C:Pagesoftxxxyyy
 
The source would need to be
 
Source: YourDevelopmentfolderxxxyyy
 
 
You would need to use the Add Folders section to add the folder xxx and xxxyyy, then just choose {app} for the destination folder. This would get you the desired effect.
Title: How to put files in a folder not related to {app}
Post by: pagesoft on November 03, 2011, 09:02:15 AM
Thank You
Title: How to put files in a folder not related to {app}
Post by: Randem on November 03, 2011, 09:06:31 AM
You will also need to use the [Dirs] section of Inno Setup to create empty folders or as we like to do it install the files to the {app} folders in the folders then upon the application start, copy the files to the locations that you really want them. In that way you always have a backup copy of clean files that can be recopied in case of corruption.
Title: How to put files in a folder not related to {app}
Post by: Randem on November 03, 2011, 09:14:30 AM
BTW: the xxxyyy method will only work with the Add Folders section and the files will be deployed to a folder inside which Destination your chose for deployment from that screen.
Title: How to put files in a folder not related to {app}
Post by: pagesoft on November 03, 2011, 09:46:19 AM
All is well!  Every thing installed but my windows service but that is okay as I figured I would have a problem with window service.
 
Thanks again for help!
 
Murry
Pagesoft