Can I include Rul files twice?
Posted 10 October 2012 - 09:24
I have a Log.Rul script file, which I included into the Setup.Rul file to log/document the setup process. Now, I want to use the logging functions within my Dialog.Rul und SetupFunction.Rul file also. If I include it within these files too, I get "already defined" errors.
How can I uses functions within multiple Rul files?
Thanks in advance,
Btw, I use InstallShield 2012 with a InstallScript project.
Posted 10 October 2012 - 12:39
Instead, just include the Log.Rul script in your main Setup.rul file along with the other Dialog.Rul & SetupFunction.Rul files and the compiler will be able to resolve things okay.
Posted 12 October 2012 - 10:26
Unfortunately, neither including the Log.Rul file in Setup.Rul and calling the WriteLog() function from SetupFunctions.Rul, nor putting the prototype to a Log.h file worked.
I always get the error: WriteLog : identifier already defined
I guess I have to reduce logging to the Setup.Rul file actions.
Edited by ThomasM, 12 October 2012 - 10:27.
Posted 12 October 2012 - 15:27