[izpack-users] ShortcutPanel - all users

Marcelo Gifoni Tierno marcelo.gifoni at visionware.com.br
Mon Jul 24 14:58:12 CEST 2006


Thanks!

Marc Eppelmann wrote:
> Hi Marcelo, Hi all,
>
> It seems that the underlying native implementation of the File.canWrite() 
> Method does not work properly on Win32. There behavior is directly opposed to 
> the corresponding Javadoc, I think.
>
> Maybe if this reproducable and If I can verify this Bug of the JRE, I will 
> report it to  http://java.sun.com/cgi-bin/bugreport.cgi
> I have tested on a JRE1.4.2_11
>
> I work on a Bugfix aka Workaround.
>
> Stay Tuned
>
> Cheers
> Marc
>
>
>
> Am Donnerstag, 20. Juli 2006 15:27 schrieb Marcelo Gifoni Tierno:
>   
>> Hi Marc,
>>
>> See below the logfile:
>>
>> com.izforge.izpack.installer.Installer LogFile created at Thu Jul 20
>> 10:03:33 BRT 2006
>> System.Properties:
>> java.runtime.name  =  Java(TM) 2 Runtime Environment, Standard Edition
>> sun.boot.library.path  =  C:\Arquivos de programas\Java\jre1.5.0_06\bin
>> java.vm.version  =  1.5.0_06-b05
>> java.vm.vendor  =  Sun Microsystems Inc.
>> java.vendor.url  =  http://java.sun.com/
>> path.separator  =  ;
>> java.vm.name  =  Java HotSpot(TM) Client VM
>> file.encoding.pkg  =  sun.io
>> user.country  =  BR
>> sun.os.patch.level  =  Service Pack 2
>> java.vm.specification.name  =  Java Virtual Machine Specification
>> user.dir  =  C:\TesteInstalacao\Installer
>> java.runtime.version  =  1.5.0_06-b05
>> java.awt.graphicsenv  =  sun.awt.Win32GraphicsEnvironment
>> java.endorsed.dirs  =  C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\endorsed
>> os.arch  =  x86
>> java.io.tmpdir  =  C:\DOCUME~1\mgifoni\CONFIG~1\Temp\
>> line.separator  =
>>
>> java.vm.specification.vendor  =  Sun Microsystems Inc.
>> izpack.logfile  =  null
>> user.variant  =
>> os.name  =  Windows XP
>> sun.jnu.encoding  =  Cp1252
>> java.library.path  =
>> C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:
>> \WINDOWS;C:\WINDOWS\system32\WBEM;C:\oracle\ora92\bin;C:\ARQUIV~1\Borland\De
>> lphi5\Projects\Bpl;C:\ARQUIV~1\Borland\vbroker\jre\Bin;C:\ARQUIV~1\Borland\v
>> broker\Bin;C:\ARQUIV~1\Borland\Delphi5\Bin;C:\Arquivos de
>> programas\Oracle\jre\1.3.1\bin;C:\Arquivos de
>> programas\Oracle\jre\1.1.8\bin;C:\Arquivos de programas\Microsoft SQL
>> Server\80\Tools\BINN;C:\Arquivos de
>> programas\QuickTime\QTSystem\;C:\Arquivos de programas\Java\jre1.5.0_06\bin
>> java.specification.name  =  Java Platform API Specification
>> java.class.version  =  49.0
>> sun.management.compiler  =  HotSpot Client Compiler
>> os.version  =  5.1
>> user.home  =  C:\Documents and Settings\mgifoni
>> user.timezone  =  America/Sao_Paulo
>> java.awt.printerjob  =  sun.awt.windows.WPrinterJob
>> file.encoding  =  Cp1252
>> java.specification.version  =  1.5
>> java.class.path  =  install.jar
>> user.name  =  mgifoni
>> LOG  =  true
>> java.vm.specification.version  =  1.0
>> java.home  =  C:\Arquivos de programas\Java\jre1.5.0_06
>> sun.arch.data.model  =  32
>> user.language  =  pt
>> java.specification.vendor  =  Sun Microsystems Inc.
>> awt.toolkit  =  sun.awt.windows.WToolkit
>> java.vm.info  =  mixed mode, sharing
>> java.version  =  1.5.0_06
>> java.ext.dirs  =  C:\Arquivos de programas\Java\jre1.5.0_06\lib\ext
>> sun.boot.class.path  =  C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\rt.jar;C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\i18n.jar;C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\sunrsasign.jar;C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\jsse.jar;C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\jce.jar;C:\Arquivos de
>> programas\Java\jre1.5.0_06\lib\charsets.jar;C:\Arquivos de
>> programas\Java\jre1.5.0_06\classes
>> java.vendor  =  Sun Microsystems Inc.
>> file.separator  =  \
>> java.vendor.url.bug  =  http://java.sun.com/cgi-bin/bugreport.cgi
>> sun.io.unicode.encoding  =  UnicodeLittle
>> sun.cpu.endian  =  little
>> sun.desktop  =  windows
>> sun.cpu.isalist  =
>>
>> ==========================================
>>
>>
>>  com.izforge.izpack.installer.Installer installs on:
>>
>> OS_NAME=Windows XP
>> Windows XP Service Pack 2
>>
>>
>> ==========================================
>>
>>  - Logger initialized at 'Thu Jul 20 10:03:33 BRT 2006'.
>>  - commandline args:
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .initialize() '1', '-'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .supported() 'true'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .getProgramsFolder()
>> '2', 'C:\Documents and Settings\All Users\Menu Iniciar\Programas'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .getProgramsFolder()
>> '1', 'C:\Documents and Settings\All Users\Menu Iniciar\Programas'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .multipleUsers()-1
>> 'C:\Documents and Settings\All Users\Menu Iniciar\Programas'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .multipleUsers()-2
>> 'C:\Documents and Settings\mgifoni\Menu Iniciar\Programas'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .multipleUsers()-3 'true'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setUserType() '1'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setLinkName()
>> 'Uninstaller' Class: com.izforge.izpack.util.os.Win_Shortcut:
>> .setLinkType() '1' Class: com.izforge.izpack.util.os.Win_Shortcut:
>> .setArguments() '' Class: com.izforge.izpack.util.os.Win_Shortcut:
>> .setDescription() 'MyApp uninstaller'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setIconLocation()
>> 'C:\MyApp\ICO\form.ico', '0'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setShowCommand() '0'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setTargetPath()
>> 'C:\MyApp\Uninstaller\uninstaller.bat'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setWorkingDirectory()
>> 'C:\MyApp\Uninstaller'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .setProgramGroup()
>> 'MyGroup\MyApp\'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .getFileName()
>> 'C:\Documents and Settings\mgifoni\Menu
>> Iniciar\Programas\MyGroup\MyApp\\Uninstaller.lnk'
>> Class: com.izforge.izpack.util.os.Win_Shortcut: .getBasePath()
>> 'C:\Documents and Settings\mgifoni\Menu Iniciar\Programas'
>>
>>
>> I'm using Windows XP - Portuguese.
>>
>> Regards.
>>
>> Marc Eppelmann wrote:
>>     
>>> Hi,
>>>
>>> You have to be in the Administrators Usergroup. To have the permission to
>>> write in the "common" or "all" Users Desktop- or Start Menu folder.
>>>
>>> And you need effective write-permission to this folder. In general as
>>> Member of the Administrators Group you have.
>>>
>>> If this also fails, this can be a bug in the native Shelllink.dll - But
>>> to be sure and for debug reasons give the -DLOG=true option on the
>>> commandline.
>>>
>>> i.e.~> java -DLOG=true -jar your_installer.jar
>>>
>>> ...and send the created logfile to me.
>>>
>>> Also important detail: Which language have your WinXP-Box?
>>>
>>> Cheers
>>> Marc
>>>
>>> Am Mittwoch, 19. Juli 2006 16:00 schrieb Marcelo Gifoni Tierno:
>>>       
>>>> Fabrice,
>>>>
>>>> I can't choose the "all user" radio button.
>>>>
>>>> Miraodb wrote:
>>>>         
>>>>> Hi,
>>>>>
>>>>> Do you mean you also can't choose the "all user" radio button ? Or you
>>>>> can ?
>>>>>
>>>>> Cheers,
>>>>> Fab
>>>>> ----- Original Message -----
>>>>> From: "Jose Correia" <jose.correia at traderoot.com>
>>>>> To: <izpack-users at lists.berlios.de>
>>>>> Sent: Wednesday, July 19, 2006 2:58 PM
>>>>> Subject: Re: [izpack-users] ShortcutPanel - all users
>>>>>
>>>>>           
>>>>>> I'm using the same setup and I also get it.
>>>>>>
>>>>>> Regards
>>>>>> Jose
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: izpack-users-bounces at lists.berlios.de
>>>>>> [mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of Marcelo
>>>>>> Gifoni Tierno
>>>>>> Sent: 19 July 2006 02:34 PM
>>>>>> To: izpack-users at lists.berlios.de
>>>>>> Subject: Re: [izpack-users] ShortcutPanel - all users
>>>>>>
>>>>>> IzPack 3.8.2 and Windows XP Professional(Service Pack 2).
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Miraodb wrote:
>>>>>>             
>>>>>>> Hi Marcello,
>>>>>>>
>>>>>>> Sorry but i can't reproduce even with your specs.
>>>>>>> Could you tell us more precisely what the problem is and when does it
>>>>>>>               
>>>>>> occur.
>>>>>>
>>>>>>             
>>>>>>> With your install and specs file, i do have the choice to select the
>>>>>>> all user radio button for shortcuts.
>>>>>>>
>>>>>>> Which version are you using? on which OS ?
>>>>>>> The more details, the easier for us to debug...
>>>>>>>
>>>>>>> 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 6:31 PM
>>>>>>> Subject: Re: [izpack-users] ShortcutPanel - all users
>>>>>>>
>>>>>>>               
>>>>>>>> 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
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>             
>>>>> _______________________________________________
>>>>> 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
>>>       
> _______________________________________________
> 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