プロジェクト

全般

プロフィール

« | » 

リビジョン d6894dad

高徹 高橋 徹 さんが9年以上前に追加

Windowsインストーラ作成をNetBeansからではなくバッチファイルから実行する

  • NetBeansプロジェクト設定からネイティブビルドを削除
  • javapackager実行バッチファイル追加
  • メジャーアップグレード対応のテンプレートを追加

差分を表示:

AnalogClockSvg/createmsi.bat
@echo off
javapackager -deploy -native msi ^
-v ^
-outdir dist -outfile AnalogClockSvg ^
-srcdir dist -srcfiles AnalogClockSvg.jar ^
-appclass analogclocksvg.AnalogClockSvg ^
-name "AnalogClock" ^
-BappVersion=0.3.1 ^
-title "Analog Clock with SVG" ^
-vendor Takahashi ^
-description "Analog Clock on desktop"
AnalogClockSvg/nbproject/project.properties
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.desc=Analog clock on desktop\n
application.title=AnalogClock
application.vendor=Torutk Tools
application.vendor=
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
......
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
javafx.application.implementation.version=0.3.0
javafx.application.implementation.version=
javafx.binarycss=false
javafx.classpath.extension=\
${platforms.JDK_1.8_32bit.home}/jre/lib/javaws.jar:\
......
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
native.bundling.enabled=true
native.bundling.enabled=false
platform.active=JDK_1.8_32bit
run.classpath=\
${dist.jar}:\
AnalogClockSvg/package/windows/AnalogClock.wxs
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="PRODUCT_GUID" Name="APPLICATION_NAME"
Language="1033" Version="APPLICATION_VERSION"
Manufacturer="APPLICATION_VENDOR"
UpgradeCode="fe287b25-e03d-4744-90f4-96b05dc36bf0">
<Package Description="APPLICATION_DESCRIPTION" Comments="None"
InstallerVersion="200" Compressed="yes"
InstallScope="INSTALL_SCOPE" Platform="PLATFORM"/>
<MajorUpgrade DowngradeErrorMessage="Already new [ProductName] installed. Stopping to install." />
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
<!-- We use RemoveFolderEx to ensure application folder is fully
removed on uninstall. Including files created outside of MSI
after application had been installed (e.g. on AU or user state).
Hovewer, RemoveFolderEx is only available in WiX 3.6,
we will comment it out if we running older WiX.
RemoveFolderEx requires that we "remember" the path for uninstall.
Read the path value and set the APPLICATIONFOLDER property with the value.
-->
<Property Id="APPLICATIONFOLDER">
<RegistrySearch Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME"
Root="REGISTRY_ROOT" Type="raw"
Id="APPLICATIONFOLDER_REGSEARCH" Name="Path" />
</Property>
<DirectoryRef Id="APPLICATIONFOLDER">
<Component Id="CleanupMainApplicationFolder" Guid="*" Win64="WIN64">
<RegistryValue Root="REGISTRY_ROOT"
Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME"
Name="Path" Type="string" Value="[APPLICATIONFOLDER]"
KeyPath="yes" />
<!-- We need to use APPLICATIONFOLDER variable here or RemoveFolderEx
will not remove on "install". But only if WiX 3.6 is used. -->
WIX36_ONLY_START
<util:RemoveFolderEx On="uninstall" Property="APPLICATIONFOLDER" />
WIX36_ONLY_END
</Component>
</DirectoryRef>
<?include bundle.wxi ?>
UI_BLOCK
APP_CDS_BLOCK
<Icon Id="DesktopIcon.exe" SourceFile="APPLICATION_ICON" />
<Icon Id="StartMenuIcon.exe" SourceFile="APPLICATION_ICON" />
SECONDARY_LAUNCHER_ICONS
</Product>
</Wix>

他の形式にエクスポート: Unified diff