Hello:
I am on IA 15 Studio Admin and am in the process of repackaging on older install. Once all files are copied we need to run the following in order before the install is done:
1. $TARGETDIR$\MaterAtoms.exe --then--
2. $TARGETDIR$\MakeDesk.exe
3. display the finish
then upon uninstall/repair we need to ensure that all the data from the application folder (including data that the user placed there) is totally purged from the computer. How to ensure this?
thanks for any help:
REG: run a program or set of programs before install finish
-
- Posts: 6
- Joined: Sat Apr 18, 2015 8:37 pm
REG: run a program or set of programs before install finish
Thanks:
Carly Grace Fleischmann:
[color=#0000BF]Call Center Tech by Day, beginning programmer and install Dev by nigh, what could go wrong with that?
... Trust us, you don't ant to know!
[/color]
~~ Please remember: don't text and drive ~~
Carly Grace Fleischmann:
[color=#0000BF]Call Center Tech by Day, beginning programmer and install Dev by nigh, what could go wrong with that?
... Trust us, you don't ant to know!
[/color]
~~ Please remember: don't text and drive ~~
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: REG: run a program or set of programs before install fin
Dear lmodern1878,
for what concerns your first question, you may use the following code just after the "Apply Install" statement in your main script.
*the above sample executes the "EXE" files if the installation completed successfully.
You may eventually use a custom variable to get the value returned by your executables
Regarding your second question, you may use the following code just after the "Apply UnInstall" statement in your main script.
To do the same when the setup gets executed in Repair mode, you may use the following snippet at the very beginning of the "Perform First Time or Maintenance Installation" code region of your main script ( ...and before of any "Install Files" command).
Hope this helps you.
Regards
for what concerns your first question, you may use the following code just after the "Apply Install" statement in your main script.
Code: Select all
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS Equals COMPLETE
Run Program $TARGETDIR$\MaterAtoms.exe
Run Program $TARGETDIR$\MakeDesk.exe
end
*the above sample executes the "EXE" files if the installation completed successfully.
You may eventually use a custom variable to get the value returned by your executables
Regarding your second question, you may use the following code just after the "Apply UnInstall" statement in your main script.
Code: Select all
Recursively Delete Files $TARGETDIR$\*.*
To do the same when the setup gets executed in Repair mode, you may use the following snippet at the very beginning of the "Perform First Time or Maintenance Installation" code region of your main script ( ...and before of any "Install Files" command).
Code: Select all
[DEFINE REGION: Perform First Time or Maintenance Installation]
if Variable MAINTENANCE Equals TRUE
if Variable REPAIR Equals TRUE
Recursively Delete Files $TARGETDIR$\*.*
end
end
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 6
- Joined: Sat Apr 18, 2015 8:37 pm
Re: REG: run a program or set of programs before install fin
Looks like most of that worked. Thanks. The only thing that failed on this was that the installation folder was left empty. What is the "remove folder" command? thus the ability to delete the now empty folder (in testing "C:\SASIxp32")
Thanks:
Carly Grace Fleischmann:
[color=#0000BF]Call Center Tech by Day, beginning programmer and install Dev by nigh, what could go wrong with that?
... Trust us, you don't ant to know!
[/color]
~~ Please remember: don't text and drive ~~
Carly Grace Fleischmann:
[color=#0000BF]Call Center Tech by Day, beginning programmer and install Dev by nigh, what could go wrong with that?
... Trust us, you don't ant to know!
[/color]
~~ Please remember: don't text and drive ~~
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: REG: run a program or set of programs before install fin
Dear lmodern1878,
you may use the approach described with the following thread.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10457&hilit=+RemoveDirectory
Regards
you may use the approach described with the following thread.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10457&hilit=+RemoveDirectory
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 149 guests