How to put files in a folder not related to {app}

Started by pagesoft, November 03, 2011, 08:03:43 AM

Previous topic - Next topic

pagesoft

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

Randem

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.

Randem

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.


Randem

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.

pagesoft

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.

Randem

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

Randem

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.

pagesoft

It would be nice if would create constants or properties that allow us to define paths.

pagesoft

{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.

Randem


pagesoft

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.