PDA

View Full Version : Uninstall Script GEN1007 errors



NewsArchive
10-16-2007, 02:36 AM
Dear all,

Using the latest version 6.6.2016, I am attempting to create an uninstall
script for one of my new installers. I have done so succesfully in the past.

However for the installer of my most recent application I want to create an
uninstall script in order to prompt the user for uninstall feedback. On
simply creating and importing the uninstall script, (as has worked on
previous projects), I get the following errors:

myprojectuninstall.sb6.sbi(19): error GEN1007: Reference to constant
$SB_SILENTMODEFLAG$ has not been previously defined
myprojectuninstall.sb6.sbi(22): error GEN1007: Reference to constant $IDYES$
has not been previously defined.
myprojectuninstall.sb6.sbi(25): error GEN1007: Reference to constant $IDYES$
has not been previously defined.

Any ideas? Even when I don't add or modify the script in any way, it fails.
If I remove the uninstall script my installer compiles successfully just as
it always has done.

Many thanks!

Mike W

NewsArchive
10-16-2007, 02:36 AM
Hi Mike,

This is not a version specific "problem" ;-)

It simply means that you have your #include uninstall.sbi line before the
"Common Definitions.sbi" definition ;-)

For example:

This works fine (constants are defined *before* your uninstall include
script)

[ Initialize Setup ]
! --- Define commonly used constants ---
#include script "Common Definitions.sbi"
#include script "Uninstall.sbi" from "C:\test\Include"

But this will fail because the constants are not defined when you call the
uninstall include.

[ Initialize Setup ]
! --- Define commonly used constants ---
#include script "Uninstall.sbi" from "C:\test\Include"
#include script "Common Definitions.sbi"

So just use my first example and you are done :)

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
10-18-2007, 02:11 AM
> [ Initialize Setup ]
> ! --- Define commonly used constants ---
> #include script "Uninstall.sbi" from "C:\test\Include"
> #include script "Common Definitions.sbi"
>
> So just use my first example and you are done :)
>
> Does this help?

Of course - many thanks!


--
Mike Wilson
Evolved Software Studios (UK)
Software for Construction, Healthcare, Financial and Broadcast Industries

web: <www.evolvedsoftwarestudios.com>
blog: <http://blog.evolvedsoftwarestudios.com>