## #16 Fault: Use of gui re-orders iss file and it becomes broken

open
nobody
None
5
2009-07-02
2009-07-02
martinyarwood
No

If I have an iss file where #defines are defined just before they are used ie #define DeleteService occurs just before [UninstallRun] where #emit DeleteService is used and then I use the ISTool gui page for adding a file or setting a working directory or something and save; the iss file is completely reordered with the #emit occuring before the #define and the compile fails.

If I re-order the file so that all of the #defines happen before the first iss tag [ ] and test that it compiles, all is well and I get an installer. I then use the ISTool gui again to change a path, the file is re-ordered again and this time:

Error on line 507 in R:\software\scripts\utils\windows\installers\Sentinel-Server-Suite-Setup.iss: [ISPP] Error at 54:131 in macro StopService:
Expression expected but semicolon (";") found.

I seem to have an iss file that gets broken if I use the ISTool gui to edit it.

## Discussion

• martinyarwood
2009-07-02

iss file with inline #defines and #emits

Attachments