changing files after build

Post specialized setup scripts you have created here.
Bilbi
Posts: 5
Joined: Sun Dec 18, 2011 4:14 am

changing files after build

Postby Bilbi » Sun Dec 18, 2011 4:22 am

Is it possible to dynamically change files (such as .dll or .txt), after build?
For example, I want to replace a .dll file with a newer version at home, where i don't have installAware app,
can I just replace it and run installation file?
Same I wanna do with version no., can I read it each time I install the software from a .txt file that changes after installation file was built???
If so, how can I?

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: changing files after build

Postby giaviv » Sun Dec 18, 2011 5:11 pm

Hi,

You can technically specify the location of these files in a text file, but these is very unstable and therefore not recommended.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Bilbi
Posts: 5
Joined: Sun Dec 18, 2011 4:14 am

Re: changing files after build

Postby Bilbi » Mon Dec 19, 2011 2:32 am

Thanks, It really works, but still, how can I read the version's installation number from a text file?
I try adding the text file to "SupportFiles" and read the file using a script, but it seems as if the text is constant,
even though I change the .txt and rebuild...
Also I tried adding the .txt file's folder in the "files" screen but from there, the script didn't read at all.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: changing files after build

Postby giaviv » Mon Dec 19, 2011 5:30 pm

Hi,

So you mentioned you were trying to rebuild. You made it sound in the original post like you are not trying to rebuild.
If you are rebuilding, you can specify values for installer variables via the command line (assuming you are building from the command line as well).
Is this what you are looking for?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Bilbi
Posts: 5
Joined: Sun Dec 18, 2011 4:14 am

Re: changing files after build

Postby Bilbi » Tue Dec 20, 2011 1:38 am

Yes, it's a bit complex, I wanna do it all! :-)
First, I wana rebuild. Next I wanna use this installation with my private configuration folder("Config"),
so to be capable of setting the installation parameters, such as version number whenever I change the participating files.
The thing is, I wanna read the "Config"s path from a relative folder into a variable, as you suggested...
but is there any function that can get me the current folder using a concatenation with "DATADIR" environment variable?
(since i wanna read from the DATADIR/Config/1.txt) but the "set variable" doesn't seem to help me with this...
Thank you for your help, and sorry for the complicated story I gave you :-)

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: changing files after build

Postby giaviv » Tue Dec 20, 2011 8:04 pm

What do you mean by "current folder"?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Bilbi
Posts: 5
Joined: Sun Dec 18, 2011 4:14 am

Re: changing files after build

Postby Bilbi » Wed Dec 21, 2011 1:13 am

I mean the installation build folder, not the "program files", the build's output folder,
where the installation .exe file is located.

Bilbi
Posts: 5
Joined: Sun Dec 18, 2011 4:14 am

Re: changing files after build

Postby Bilbi » Wed Dec 21, 2011 1:20 am

I made it!!!
My mistake was that I tried to set the concatenated text directly insted of using a variable to both path parts,
so set didn't work... it took it as a string and not variable.
Thank you for your help! :)


Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 31 guests