Results 1 to 2 of 2

Thread: How to debug installation

  1. #1
    Join Date
    Apr 2012
    Posts
    13

    How to debug installation

    Hi, everyone.

    I have a very simple project. I created 3 InstallScript function, one of them, InitializeINSTALLDIR

    Code:
    #include "ifx.h"
    #include "iswi.h"
    
    // The keyword export identifies MyFunction() as an entry-point function.
    // The argument it accepts must be a handle to the Installer database.
    export prototype InitializeINSTALLDIR(HWND);
    
    function InitializeINSTALLDIR(hMSI)
        STRING szInstDir;
    
        NUMBER nvCount;
        INT result;
    begin
    	nvCount = MAX_PATH;
    	
    	result = GetEnvVar ("FIPLAN_HOME", szInstDir);
    	
    	result = MsiSetProperty(hMSI, "INSTALLDIR", szInstDir);
    	
    	INSTALLDIR = szInstDir;
    end;
    This function is connected with button "Next" on the Dialog "WelcomeInstall".

    But, when I click "Next" my installation stopped. Please, check attachment. How I can know the reason for stopped installation?
    Attached Images Attached Images  

  2. #2
    Join Date
    Nov 2005
    Location
    Beijing, China
    Posts
    187
    F5 start debugging.

    Firstly, you need to define a custom action to call your InitializeINSTALLDIR function.

    Then specify DoAction event's argument with your CA's name, set the condition to 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •