-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows registry name write default ? #341
Comments
Work in progress in branch |
I've just released a SNAPSHOT version: Please, test it and give some feedback. Now working on MSI. Thanks! |
Just fixed for MSI generation. Now you can test <plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.7.3-20230627.004407-10</version>
<configuration>
<generateInstaller>true</generateInstaller>
[some other config options]
</configuration>
<executions>
<execution>
<id>windows-setup</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<platform>windows</platform>
<winConfig>
<generateSetup>true</generateSetup>
<generateMsi>false</generateMsi>
<registry>
<entries>
<entry>
<key>HKCR:*\shell\${project.name}</key>
<valueName>Icon</valueName>
<valueType>REG_SZ</valueType>
<valueData>{app}\{#MyAppExeName}</valueData>
</entry>
<entry>
<key>HKCR:*\shell\${project.name}\command</key>
<valueType>REG_SZ</valueType>
<valueData>{app}\{#MyAppExeName} %1</valueData>
</entry>
</entries>
</registry>
</winConfig>
</configuration>
</execution>
<execution>
<id>windows-msi</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<platform>windows</platform>
<winConfig>
<generateSetup>false</generateSetup>
<generateMsi>true</generateMsi>
<registry>
<entries>
<entry>
<key>HKCR:*\shell\${project.name}</key>
<valueName>Icon</valueName>
<valueType>REG_SZ</valueType>
<valueData>[#EXEFILE]</valueData>
</entry>
<entry>
<key>HKCR:*\shell\${project.name}\command</key>
<valueType>REG_SZ</valueType>
<valueData>[#EXEFILE] %1</valueData>
</entry>
</entries>
</registry>
</winConfig>
</configuration>
</execution>
</executions>
</plugin> Note that |
Maybe we can define a kind of JP variables for installation path ( <registry>
<entries>
<entry>
<key>HKCR:*\shell\${project.name}</key>
<valueName>Icon</valueName>
<valueType>REG_SZ</valueType>
<valueData>{EXEFILE}</valueData>
</entry>
<entry>
<key>HKCR:*\shell\${project.name}\command</key>
<valueType>REG_SZ</valueType>
<valueData>{EXEFILE} %1</valueData>
</entry>
</entries>
</registry> Where, in this case, |
Thank you very much. I will provide feedback during the test |
Please, keep this issue open till you confirm it's fixed and released. Thanks! |
I'm not sure what's the problem, but javapackager-1.7.3-20230626.114901-9.jar is published. Maybe something is wrong for IntelliJ? Did you try to build your app from the command line? |
Please, can you share all the plugin output? |
Additionally, I have noticed that there may be some issues with why, as my swing program using FlatLaf may not run properly, After debugging, I found that there are a large number of warnings when running the jar package java.lang.Error: no ComponentUI class for: javax.swing.JRadioButtonMenuItem[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=null,paintBorder=false,paintFocus=false,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Assembler 6502]
at java.desktop/javax.swing.UIDefaults.getUIError(UIDefaults.java:763)
at java.desktop/javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:144)
at java.desktop/javax.swing.UIDefaults.getUI(UIDefaults.java:793)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1073)
at java.desktop/javax.swing.JMenuItem.updateUI(JMenuItem.java:255)
at java.desktop/javax.swing.JMenuItem.init(JMenuItem.java:220)
at java.desktop/javax.swing.JMenuItem.<init>(JMenuItem.java:159)
at java.desktop/javax.swing.JRadioButtonMenuItem.<init>(JRadioButtonMenuItem.java:189)
at java.desktop/javax.swing.JRadioButtonMenuItem.<init>(JRadioButtonMenuItem.java:126)
at io.xbmlz.jeditor.MainFrame.buildLanguagePopupMenu(MainFrame.java:511)
at io.xbmlz.jeditor.MainFrame.initComponents(MainFrame.java:415)
at io.xbmlz.jeditor.MainFrame.<init>(MainFrame.java:136)
at io.xbmlz.jeditor.MainFrame.lambda$launch$1(MainFrame.java:201)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
error: process didn't exit successfully: `target\debug\jarun.exe` (exit code: 130) After testing, it was found that both Trust and Golang encountered different exceptions when using JNI to start the jar, which caused it to not function properly |
Here you can open an issue about this. |
|
Branch |
1.7.3 released to Maven Central |
I'm submitting a…
Short description of the issue/suggestion:
Windows Registry Name is default
Steps to reproduce the issue/enhancement:
maven content
What is the expected behavior?
source code is https://github.com/fvarrui/JavaPackager/blob/master/src/main/java/io/github/fvarrui/javapackager/packagers/GenerateSetup.java#L50
What is the current behavior?
Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?
What is the motivation / use case for changing the behavior?
windows registry default name
Please tell us about your environment:
Other information (e.g. related issues, suggestions how to fix, links for us to have context)
The text was updated successfully, but these errors were encountered: