MB Software Solutions, LLC wrote on 2010-04-19:
> Got a simple software I'm installing. Only want to run the MyODBC
> setup.exe if the {App}\MyODBC\setup.exe doesn't exist yet. (So
> basically, for future installs, I don't want to run this since it gets
> installed the first time.)
>
> I don't see an option for this when I edit my Run line. Here's the
> lines from my Inno script for the setup.exe (install and run):
>
> [Files] ..other stuff.. Source: C:\dev\runtimes\mysql\Setup.exe;
> DestDir: {app}\MyODBC; Flags: ignoreversion
>
>
> [Run]
> Filename: {app}\MyODBC\Setup.exe; StatusMsg: Ready to install MySQL
> ODBC drivers...please choose the Typical installation.
>
>
> In some way, I need a way to set a variable or condition that tells
> the Inno installer to only run the setup.exe when it just got
> installed this time, and not if it already existed.
>
> Help! tia,
> --Mike
>
>
I believe you can use the "onlyifdoesntexist" flag with the "AfterInstall"
parameter. Since the help file has this included in the BeforeInstall and
AfterInstall Parameters section:
A BeforeInstall or AfterInstall function isn't called if Setup already
determined the entry it shouldn't be processed.
You can set the parameter in your [code] section procedure you write to
determine if the Run entry should run.
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/000f01cadffc$7786dc40$669494...@com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.