cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Barvaz
Level 6

Open explorer

Hi,

I add check box to SetupCompleteSuccess editor to enable to the end user to choose if he want to open the folder log files.
the directory log file exist under c:/temp and i want to enable to the user to check the box and then click Finish and the log folder will open.
Please advice how to implement it.
If you have other idea it ok.

Thanks
Labels (1)
0 Kudos
(3) Replies
skolte
Level 7

This is easily possible.

In order to launch log file you need to follow three steps:
[LIST=1]
  • Get the log file path
  • Add checkbox to SdFinish dialog
  • If checkbox is checked launch the log file in Notepad


    I put together a quick sample for you. You can get it here.
  • 0 Kudos
    Barvaz
    Level 6

    I need to open folder which includes few log files - not only one log file
    0 Kudos
    manomatt
    Level 8

    use explorer.exe to open the required folder.

    like this:-

    ExplorerEXE = WindowsFolder + "\\explorer.exe";
    logFolderPath = TempFolder;
    LaunchApp(ExplorerEXE , logFolderPath );
    0 Kudos