[izpack-users] ShortcutPanel - all users

Marcelo Gifoni Tierno marcelo.gifoni at visionware.com.br
Tue Jul 18 18:31:35 CEST 2006


Hi Fabrice,

This is my install.xml :

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>

<installation version="1.0">
           
    <!-- The info section. The meaning of the tags should be natural ... -->
    <info>   
        <appname>MyApp</appname>
        <appversion>1.6</appversion>
        <authors>
            <author name="Marcelo" 
email="marcelo.gifoni at visionware.com.br"/>           
        </authors>       
    </info>
   
    <!--  The gui preferences indication.  Sets the installer window to 
640x480. It will not be able to change the size. -->
    <guiprefs width="640" height="480" resizable="no"></guiprefs>
   
    <!-- The locale section. Asks here to include the English and 
Portuguese langpacks.   -->
    <locale>
        <langpack iso3="eng"/>
        <langpack iso3="por"/>
        <langpack iso3="spa"/>       
    </locale>
                  
    <!-- The resources section. The ids must be these ones if you want 
to use the LicencePanel and/or the InfoPanel.    -->
    <resources>
        <res id="LicencePanel.licence" src="doc\Licence.txt"/>
        <res id="InfoPanel.info" src="doc\Readme.txt"/>
        <res id="shortcutSpec.xml" 
src="default_shortcut_specification.xml"/>       
    </resources>
   
    <!-- Use this instruction for Shortcuts. -->
    <native type="izpack" name="ShellLink.dll"/>
       
    <!-- The panels section.  We indicate here which panels we want to 
use. The order will be respected.  -->
    <panels>
        <panel classname="HelloPanel"/>
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>       
        <panel classname="InstallPanel"/>
        <panel classname="ShortcutPanel"/>       
        <panel classname="FinishPanel"/>
    </panels>
   
    <!-- The packs section. We specify here our packs.  -->
    <packs>
        <pack name="Base" required="yes">
            <description>The base files</description>
            <file src="doc/Readme.txt" targetdir="$INSTALL_PATH/doc"/>
            <file src="doc/Licence.txt" targetdir="$INSTALL_PATH/doc"/>
            <file src="src/MyApp.exe" targetdir="$INSTALL_PATH"/>
            <file src="src/MyApp.ini" targetdir="$INSTALL_PATH"/>
            <file src="src/Connection.dsn" 
targetdir="$INSTALL_PATH"/>                       
            <file src="src/MyApp.mdb" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="Docs" required="yes">
            <description>The documentation</description>
            <file src="doc" targetdir="$INSTALL_PATH"/>
            <!-- Reccursive adding -->
        </pack>
        <pack name="Lib" required="yes">
            <description>The lib files</description>
            <file src="C:\WINDOWS\System32\scrrun.dll" 
targetdir="C:\WINDOWS\System32"/>
            <file src="C:\WINDOWS\System32\COMCTL32.OCX" 
targetdir="C:\WINDOWS\System32"/>
            <file src="C:\WINDOWS\System32\MSCOMCTL.OCX" 
targetdir="C:\WINDOWS\System32"/>
            <file src="C:\WINDOWS\System32\COMDLG32.OCX" 
targetdir="C:\WINDOWS\System32"/>           
            <file src="C:\WINDOWS\System32\MCI32.OCX" 
targetdir="C:\WINDOWS\System32"/>
            <file src="C:\WINDOWS\System32\MSWINSCK.OCX" 
targetdir="C:\WINDOWS\System32"/>                       
            <file src="C:\WINDOWS\System32\stdole2.tlb" 
targetdir="C:\WINDOWS\System32"/>
            <file src="C:\WINDOWS\System32\hid.dll" 
targetdir="C:\WINDOWS\System32"/>
            <file src="C:\Arquivos de programas\Arquivos 
comuns\System\ado\msado26.tlb" targetdir="C:\WINDOWS\System32"/>
            <file src="register.bat" targetdir="$INSTALL_PATH"/>
            <file src="unregister.bat" 
targetdir="$INSTALL_PATH\Uninstaller"/>
            <file src="uninstaller.bat" 
targetdir="$INSTALL_PATH\Uninstaller"/>
            <!-- Executble files -->
            <executable targetfile="$INSTALL_PATH\register.bat" 
stage="postinstall" failure="warn"/>           
            <executable 
targetfile="$INSTALL_PATH\Uninstaller\unregister.bat" stage="uninstall" 
failure="warn"/>
            <!-- Parsable files -->
            <parsable 
targetfile="$INSTALL_PATH\Uninstaller\uninstaller.bat"/>
        </pack>
    </packs>   
   
</installation>

and my shortcutspecs.xml :

<shortcuts>
    <skipIfNotSupported/>
    <programGroup defaultName="MyGroup\MyApp"  location="startMenu"/>
   
    <shortcut name="Uninstaller"
                    target="$INSTALL_PATH\Uninstaller\uninstaller.bat"
                    commandLine=""
                    workingDirectory="$INSTALL_PATH\Uninstaller"
                    description="MyApp uninstaller"
                    iconFile="$INSTALL_PATH\ICO\form.ico"
                    iconIndex="0"
                    initialState="noShow"
                    programGroup="yes"
                    desktop="no"
                    applications="no"
                    startMenu="no"
                    startup="no">         
        <createForPack name="Base" />
   </shortcut>   
</shortcuts>


Thanks again!


Miraodb wrote:
> Hi Marcelo,
>
> I can't reproduce your problem.
> In all my installers the button for all user shorcuts is avalaible.
>
> Can you post some code ? Like install.xml and shortcutspecs.xml
>
> Cheers,
> Fabrice
> ----- Original Message ----- 
> From: "Marcelo Gifoni Tierno" <marcelo.gifoni at visionware.com.br>
> To: <izpack-users at lists.berlios.de>
> Sent: Tuesday, July 18, 2006 4:36 PM
> Subject: [izpack-users] ShortcutPanel - all users
>
>
>   
>> The shortcutpanel does not enable the option button "all users" in the 
>> Windows installer. 
>> How to enable this button?   
>>
>> Thanks.
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> http://bat.berlios.de/mailman/listinfo/izpack-users
>>
>>
>>     
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://bat.berlios.de/mailman/listinfo/izpack-users
>
>
>   


-- 
Marcelo Gifoni Tierno
VisionWare Org. Informatica & Automacao Ltda
Tel.(12)3923-1180
marcelo.gifoni at visionware.com.br




More information about the izpack-users mailing list