Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: davethomson on June 19, 2016, 10:28:18 PM

Title: Installing new version of a single .txt file
Post by: davethomson on June 19, 2016, 10:28:18 PM
I have several .txt files that are installed along with the program .exe file and have been using InnoScript and InnoSetUp for many years to produce the self-installing .exe.  How can I do the same thing but only to replace a single support .txt file?  This would be easier the having the user go through the process of downloading the .txt and then moving it from the user's download folder to the folder where the program .exe resides.
Title: Re: Installing new version of a single .txt file
Post by: Randem on June 20, 2016, 05:47:22 PM
Hi Dave,

There are 2 solutions to solve the issue you face.

1 - Create a new full installation with the new .txt file and when you install it only the newer files will be installed unless you have the install flags set to overwrite or ignore on the files.
2 - Create a new installation that only delivers the new .txt file.

Title: Re: Installing new version of a single .txt file
Post by: davethomson on June 20, 2016, 10:53:26 PM
Thanks for your reply.  I kind of figured an installation file with just the one .txt file would work.  However, I am not exactly sure the procedure.  Since there is no .exe what would I call the file?  Could I just copy most of the .iss file without the .exe and just the one .txt file?  Probably wouldn't need the "redist" files for sure.  Could change the current "name", "golfcourseratingassisant" to say "single file installation". That way I could just replace the single file name whenever I want to install a new, updated .txt file.
Title: Re: Installing new version of a single .txt file
Post by: Randem on June 20, 2016, 11:07:19 PM
You would not need an exe, Just take the current install package and remove everything except the .txt file that you want to install. Compile and deploy...
Title: Re: Installing new version of a single .txt file
Post by: davethomson on June 21, 2016, 04:17:57 AM
Thank you again.  I will do that.
Title: Re: Installing new version of a single .txt file
Post by: davethomson on June 21, 2016, 04:34:44 AM
Here is the iss file.  Compiled but have no idea where it is on my PC.  What am I  missing?  I do see that I have a "setup.exe" that is the installation file.  I thought it would be named, "UpdateFiles".


[Setup]
SetupLogging=Yes
AppId=UpdateFiles

;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------

AppName=UpdateFiles 1.0.0
AppVerName=UpdateFiles
AppPublisher=Visual Golf Software

;------------------------------------------------------------------------------------------------------------------------

AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=Visual Golf Software
DefaultDirName=c:/GolfCourseRatingAssistant
AppCopyright=Copyright 2016 By Dave Thomson
PrivilegesRequired=Admin
MinVersion=0,6.0
OnlyBelowVersion=0,6.4
Compression=lzma
OutputBaseFilename=UpdateFiles
[Tasks]


[Files]

Source: C:\golfcourseratingassistant programs\HowToUpdateGCRA.txt; DestDir: {app}; Flags:  ignoreversion;

[INI]

[Icons]


[Run]

[UninstallDelete]


[Registry]
Title: Re: Installing new version of a single .txt file
Post by: davethomson on June 21, 2016, 04:39:36 AM
Ok, maybe I messed up some place but now I do get the file, "UpdateFiles.exe" that does indeed install the updated text (.txt) file in the right place.  Strange that the first time the output file was "SetUp.exe".

Thanks for you help.
Title: Re: Installing new version of a single .txt file
Post by: Randem on June 21, 2016, 11:05:48 AM
Ok, great you got it working.