Jun 25, 2013
01:27 PM
This is a modification to an existing Installscript project. The documentation does not say MSI only, I am assuming I can make it work within Installscript as a User Def Function. Thanks for the tip about the handle.
... View more
Jun 24, 2013
03:02 PM
I'm trying to use createfile() in a user function. The documentaton has the following snippet: #define EXAMPLE_DIR "C:\\" #define EXAMPLE_FILE "ISExampl.txt" // Include Ifx.h for built-in InstallScript function prototypes. #include "Ifx.h" export prototype ExFn_CreateFile(HWND); function ExFn_CreateFile(hMSI) STRING szTitle, szMsg; NUMBER nvFileHandle; begin // Set the file mode to append. OpenFileMode (FILE_MODE_APPEND); What do the parameters HWND and hMSI represent? This will be my first user function in IS. Thanks, Mel Polatchek
... View more
- Tags:
- installscript
Labels
- Labels:
-
InstallShield 2012
Jun 17, 2013
01:00 PM
Below is a snippet from the documented CREATEFULE example #define EXAMPLE_DIR "C:\\" #define EXAMPLE_FILE "ISExampl.txt" // Include Ifx.h for built-in InstallScript function prototypes. #include "Ifx.h" export prototype ExFn_CreateFile(HWND); function ExFn_CreateFile(hMSI) STRING szTitle, szMsg; NUMBER nvFileHandle In the line export prototype ExFn_CreateFile(HWND);, what is HWND In the line function ExFn_CreateFile(hMSI), What is hMSI I can't find the explanation in the documentation and can't write my own function without understanding the paramters. All the functions I have looked at have similar parameters in the examples. Thanks for any help. Melvyn Polatchek
... View more
- Tags:
- parameters
Labels
- Labels:
-
InstallShield 2012
Jun 03, 2013
02:33 PM
Thanks, I will check that out. You are correc that I ued the code you mentioned as my model. As long as we are looking at that: What are the identifiers HWND and hMSI? Do they come from Ifx.h ? //Snippet from the example #define EXAMPLE_DIR "C:\\" #define EXAMPLE_FILE "ISExampl.txt" // Include Ifx.h for built-in InstallScript function prototypes. #include "Ifx.h" export prototype ExFn_CreateFile(HWND); function ExFn_CreateFile(hMSI) STRING szTitle, szMsg; NUMBER nvFileHandle; begin // Set the file mode to append. OpenFileMode (FILE_MODE_APPEND);
... View more
Jun 03, 2013
11:36 AM
I am trying to write to a log during my installscript execution. I have started with some primitive functionality and the following is tripping me up. Here is the code //note nvFileHandle has been decalred as a number datatype, earlier OpenFileMode (FILE_MODE_APPEND); // Create a new file and leave it open. CreateFile (nvFileHandle, LOG_DIR, LOG_FILE) ; szMsg = "This line was appended by an example InstallShield script."; // Append the message to the file. if (WriteLine(nvFileHandle, szMsg) < 0) then // Report the error. MessageBox ("WriteLine failed.", SEVERE); endif; closefile(nvFileHandle); All of it works until I get to the closefile(nvFileHandle); Then I get the 8025 error and the following message. Error C8025. InstallShield 2010 » InstallScript Language Reference. 'text' : undefined identifier. Description. The identifier specified by text has not been declared. Notes. All identifiers in a script must be declared... (I am using Installshield 2012 even though the message mentions 2010) The troublesome identifier is declared e3arlier in the script (not within a function, so it should be public) The same identifier works twice before the failure. (I traced this by selectively commeting out until finding the offending line) Can anybody tell me why the identifier is not recognized after 2 successful uses, And/Or how I can make this work? Thanks, Melvyn Polatchek
... View more
- Tags:
- installscript
Labels
- Labels:
-
InstallShield 2012
Latest posts by polatchekm
Subject | Views | Posted |
---|---|---|
1277 | Jun 25, 2013 01:27 PM | |
3184 | Jun 24, 2013 03:02 PM | |
1426 | Jun 17, 2013 01:00 PM | |
808 | Jun 03, 2013 02:33 PM | |
2211 | Jun 03, 2013 11:36 AM |
Activity Feed
- Posted This is an Installscript project on InstallShield Forum. Jun 25, 2013 01:27 PM
- Posted What do these parameters mean? on InstallShield Forum. Jun 24, 2013 03:02 PM
- Tagged What do these parameters mean? on InstallShield Forum. Jun 24, 2013 03:02 PM
- Posted Parameters not understood on InstallShield Forum. Jun 17, 2013 01:00 PM
- Tagged Parameters not understood on InstallShield Forum. Jun 17, 2013 01:00 PM
- Posted Cannot recognize a declared identifier on InstallShield Forum. Jun 03, 2013 02:33 PM
- Posted Cannot recognize a declared identifier on InstallShield Forum. Jun 03, 2013 11:36 AM
- Tagged Cannot recognize a declared identifier on InstallShield Forum. Jun 03, 2013 11:36 AM