That'll work, sure.  It's just that my default way of thinking is "shell
open" to avoid the issues that people have trying to open doc, htm, txt,
you-name-it file extensions and going off into discussions about how to
find IE, Winword, Wordpad or whatever. Shell open just circumvents most
of these issues by starting up whatever app is associated with that file
extension because that's usually the right answer. (I admit it's
unlikely chm files are associated with something else!)  If Wix actually
has a built-in custom action that does a shell open on a file then it
would work for probably all these situations, whether it's a URL, a text
file, an RTF file, chm, mp3, wav, csv, and so on, and it would use the
app that the user wanted, not that one that the setup author wanted.  

Phil Wilson 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Robbins
Sent: Thursday, September 28, 2006 2:39 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Launching a CHM

I'm not a WiX or install expert by any means, but this worked for me:

    <!-- The custom action to launch the ReadMe.CHM file when the
installation
         completes. -->
    <CustomAction Id='LaunchReadme'
                  Return='asyncNoWait'
                  ExeCommand='hh.exe "[INSTALLDIR]ReadMe.chm"'
                  Directory='TARGETDIR'>
    </CustomAction>

    <!-- Perform the custom action only if it's an new install and the
UI level
         is INSTALLUILEVEL_FULL (or completely interactive).
    -->
    <InstallExecuteSequence>
      <Custom Action='LaunchReadme' OnExit='success'>
        (NOT Installed) AND (UILevel=5)
      </Custom>
    </InstallExecuteSequence>

John
Wintellect - Know How
http://www.wintellect.com
877-968-5528 



> From: "Wilson, Phil" <[EMAIL PROTECTED]>
> Date: Thu, 28 Sep 2006 12:35:03 -0700
> To: <wix-users@lists.sourceforge.net>
> Conversation: [WiX-users] Launching a CHM
> Subject: Re: [WiX-users] Launching a CHM
> 
> The general approach to this is to do whatever it takes to run a 
> ShellExcute "open" on the file.  For doc, chm, html or whatever 
> extension this will invoke the handler for it, just like double-click.
> Details depend on your choice of language for the custom action, but 
> C++ has ShellExecute() that takes "open" and file path, among other
things.
> 
> Phil Wilson
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Young, 
> Jason (GE Indust, GE Fanuc)
> Sent: Thursday, September 28, 2006 11:40 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Launching a CHM
> 
> I've been banging my head all day trying to figure out how to launch a

> CHM at the end of my install.  I'm trying to use a custom action, and 
> I got it to work for an EXE, but not the CHM.  I would like to load it

> based on a FileKey if possible.  I don't really understand what the 
> documentation means when it has a phrase "type 35" or something.  Do 
> you actually set the type somewhere, or are they just classifications 
> based on what you pass in?
> 
> My ultimate goal is to have a checkbox that allows you to choose if 
> you want to launch the CHM, but that's not a requirement.
> 
> If anyone has an example for me, I would really appreciate it.
> 
> Thanks,
> Jason
> 
> ----------------------------------------------------------------------
> --
> -
> Take Surveys. Earn Cash. Influence the Future of IT Join 
> SourceForge.net's Techsay panel and you'll get the chance to share 
> your opinions on IT & business topics through brief surveys -- and 
> earn cash 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
> DE
> V
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
> ----------------------------------------------------------------------
> --- Take Surveys. Earn Cash. Influence the Future of IT Join 
> SourceForge.net's Techsay panel and you'll get the chance to share 
> your opinions on IT & business topics through brief surveys -- and 
> earn cash 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
> DEV _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to