Deployment and Imaging Group

 View Only
  • 1.  File Association missing outside the program

    Posted Jan 24, 2012 02:26 PM

    Hi All,

    Windows 7 64 bit. wise package studio 8.

    I have a msi, it installs and works fine. The issue i am running into, if double click on file (with specific extention. for example .xyz) on desktop (or any place outside the its program), it is showing error ".xyz is not a valid win32 application". However, same file is able to open fine under program, like file open.

    I had followed instructions listed below but no luck.

     

    http://www.symantec.com/business/support/index?page=content&id=HOWTO6691&actp=search&viewlocale=en_US&searchid=1326175997670

    so it is missing associations outside this program. looking for some help.

    thanks in advance.



  • 2.  RE: File Association missing outside the program

    Posted Jan 24, 2012 03:25 PM

    The link you have provided is for Wisescript, and not for MSI.

    File associations create entries in HKCR - depending on whether you are installing per machine or per user, you may prefer to specify a path to HKLM/Software/Classes or HKCU/Software/Classes depending on whether you want the file association to apply to all users, or only to the installing user.  

    Do you understand how the registry keys work for file associations?  If not, study extension such as .TXT and .DOC and follow the trail through HKCR.

    Or you could just capture the manual creation of the file associations.



  • 3.  RE: File Association missing outside the program
    Best Answer

    Posted Jan 24, 2012 08:08 PM

    thanks EDT.

    This is a sample i had used and got it to work. Thanks for your hint.

     

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.txt]
    @="emeditor.txt"

    [HKEY_CLASSES_ROOT\emeditor.txt]
    @="Text Document"

    [HKEY_CLASSES_ROOT\emeditor.txt\DefaultIcon]
    @="%SystemRoot%\\SysWow64\\imageres.dll,-102"

    [HKEY_CLASSES_ROOT\emeditor.txt\shell]

    [HKEY_CLASSES_ROOT\emeditor.txt\shell\open]

    [HKEY_CLASSES_ROOT\emeditor.txt\shell\open\command]
    @="\"C:\\Program Files\\EmEditor\\EMEDITOR.EXE\" \"%1\""

    [HKEY_CLASSES_ROOT\emeditor.txt\shell\print]

    [HKEY_CLASSES_ROOT\emeditor.txt\shell\print\command]
    @="\"C:\\Program Files\\EmEditor\\EMEDITOR.EXE\" /p \"%1\""