cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Sanideep
Level 3

CheckShowMsiLog Check Box IN IS 12

HI
I am using Installshield 12 to author Setup. I want to display MSI log on Setup Interrupted dialog box
I have set ISSHOWMSILOG property to 1

When I check Show MSI log check Box
I am getting folloewing error: Can not find .txt file
Notpad is properly launched
I think MSiLogFileLocation property is not getting Initialized
How can I fix this error.

Thanks
Labels (1)
0 Kudos
(4) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Are you running on MSI 4.0 or later (Windows Vista for MSI 4.0, or MSI 4.5 redistributable installed on Vista or other systems)? If not, MsiLogFileLocation is not set by Windows Installer. However the default conditions should hide the checkbox unless MsiLogFileLocation is set, so I'm unclear how you would encounter the error as described unless you've changed things.
0 Kudos
Sanideep
Level 3

Yes MichaelU
I am running my Installation on Windows Vista which has Windows Installer 4.0
I had checked In the Installation log "MsiLogFileLocation" property is properly set where my Installation log is generated.
funniest part is I have one sample project which is able to populate Windows Installer log. I am using installshield 12 for both of the projects.
Is there anything which is I am missing out.
As notpad is properly launched when we click on show MSI Log check box means we are sure that ShowMsiLog CA is executed properly. Even Install log states same thing that ShowMsiLog returns 2.
I am clueless what making it to search for ".txt" file.
Is there anything which go improper in Direct editor table?

Hope this will clear what problem I am exactly facing.

Thanks in advance for quick suppport
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

If this always fails (in the failing project), try going to the Custom Actions view, making sure Show All Custom Actions is checked in the context menu, and examining the ShowMsiLog action. It should have a filename and command line similar to [SystemFolder]notepad.exe "[MsiLogFileLocation]"; you can compare it to your working sample project's settings.
0 Kudos
Sanideep
Level 3

Yes MichaelU
ShowMsiLog CA is in place also command line is and command line similar to [SystemFolder]notepad.exe "[MsiLogFileLocation]
Only Thing which I posted earlier was wrong was "ShowMsiLog" CA returns 2;
actual Log I have attached here which shows I have entered in ShowMsiLog Custom Action but does not return from there.



MSI (c) (E0:9C) [18:18:21:031]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'SetupInterrupted'
Info 2826.Control ShowMsiLogText on dialog SetupInterrupted extends beyond the boundaries of the dialog to the right by 24 pixels.
Action 18:18:21: SetupInterrupted. Dialog created
MSI (c) (E0:68) [18:18:22:046]: PROPERTY CHANGE: Adding ISSHOWMSILOG property. Its value is '1'.
MSI (c) (E0:68) [18:18:23:031]: Doing action: ShowMsiLog
Action 18:18:23: ShowMsiLog.
Action start 18:18:23: ShowMsiLog.
MSI (c) (E0:68) [18:18:23:031]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'ShowMsiLog'
MSI (c) (E0:68) [18:18:23:031]: Doing action: ISSetupFilesCleanup
Action 18:18:23: ISSetupFilesCleanup.
Action start 18:18:23: ISSetupFilesCleanup.
MSI (c) (E0:68) [18:18:23:031]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'ISSetupFilesCleanup'
MSI (c) (E0:C4) [18:18:23:046]: Invoking remote custom action. DLL: C:\DOCUME~1\AUTOMA~1\LOCALS~1\Temp\MSI242.tmp, Entrypoint: SFCleanupEx
Action ended 18:18:23: ISSetupFilesCleanup. Return value 1.
Action ended 18:18:23: SetupInterrupted. Return value 2.
Action ended 18:18:23: INSTALL. Return value 2.
MSI (c) (E0:9C) [18:18:23:109]: Destroying RemoteAPI object.
MSI (c) (E0:58) [18:18:23:109]: Custom Action Manager thread ending.
0 Kudos