PDA

View Full Version : Rules for including scripts in an uninstall_script? - Service Demo.zip



NewsArchive
09-29-2006, 02:04 AM
I have a custom un-install script. This stops a service, and
terminates some applications before uninstalling. This was working
well.

I then moved the stopservice functionality into an include script
(inside the uninstall script). Now I have two problems:

1. When running the setup program it first says "The wizard has
successfully uninstalled [program]" before it even starts.

2. When I run the uninstall, it runs my include script (to stop the
service), but then stops before actually processing the uninstall
queue.

The attached example illustrates the problem.
If you comment out the line
#include script "test.sbi"
then the project compiles and both install/uninstall work correctly.
But as soon as you uncomment, then both install/uninstall work
incorrectly.

Regards,
Alan Telford
Development Manager
Maxtel Software Ltd
http://www.maxtelsoftware.com

NewsArchive
09-29-2006, 02:14 AM
Is the issue that all #include scripts cannot have any other #include
scripts? i.e. supports one level only.

I don't see this limitation stated anywhere. Is this the case?

Alan

Alan Telford
Development Manager
Maxtel Software Ltd
http://www.maxtelsoftware.com

NewsArchive
09-30-2006, 04:10 AM
Alan,

#include scripts can have other #include scripts.

We'll check your demo source codes, thank you.

Friedrich

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

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-30-2006, 04:10 AM
Alan,

There is definitely something broken with recursive #include file
compilation.

Item in review. Thanks for bringing this to my attention.

Friedrich

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

"point. click. ship" - that's SetupBuilder 5

NewsArchive
10-02-2006, 03:30 AM
Alan,

Fixed now, thank you! The fix will be part of the new build.

Friedrich

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

"point. click. ship" - that's SetupBuilder 5