mirror of
https://github.com/alexkay/spek.git
synced 2025-06-18 07:53:20 +03:00
[win] Option to launch Spek when setup exits
This commit is contained in:
parent
5c4d2af7a4
commit
c9ccdc647e
@ -11,7 +11,10 @@ EXTRA_DIST = \
|
|||||||
intltool-merge.in \
|
intltool-merge.in \
|
||||||
intltool-update.in \
|
intltool-update.in \
|
||||||
win/LICENSE.rtf \
|
win/LICENSE.rtf \
|
||||||
|
win/banner.bmp \
|
||||||
win/bundle.sh \
|
win/bundle.sh \
|
||||||
|
win/dialog.bmp \
|
||||||
|
win/fix-msi.js \
|
||||||
win/spek.ico \
|
win/spek.ico \
|
||||||
win/spek.rc \
|
win/spek.rc \
|
||||||
win/spek.wxs
|
win/spek.wxs
|
||||||
|
@ -53,11 +53,13 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
|
mv bin/spek.exe ../
|
||||||
rm -fr share/locale
|
rm -fr share/locale
|
||||||
rm -fr doc
|
rm -fr doc
|
||||||
rm -fr presets
|
rm -fr presets
|
||||||
rm *.txt
|
rm *.txt
|
||||||
rm bin/avdevice* bin/avfilter* bin/swscale* bin/ff*.exe
|
rm bin/avdevice* bin/avfilter* bin/swscale*
|
||||||
|
rm bin/*.exe
|
||||||
mv licenses share/
|
mv licenses share/
|
||||||
|
|
||||||
# Set the default GTK theme
|
# Set the default GTK theme
|
||||||
@ -71,6 +73,7 @@ cd ..
|
|||||||
# Make the MSI package
|
# Make the MSI package
|
||||||
"$WIX_PATH"/candle spek.wxs files.wxs
|
"$WIX_PATH"/candle spek.wxs files.wxs
|
||||||
"$WIX_PATH"/light -ext WixUIExtension.dll -b Spek spek.wixobj files.wixobj -o spek.msi
|
"$WIX_PATH"/light -ext WixUIExtension.dll -b Spek spek.wixobj files.wixobj -o spek.msi
|
||||||
|
start fix-msi.js spek.msi
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm *.res
|
rm *.res
|
||||||
@ -78,6 +81,7 @@ rm *.wixobj
|
|||||||
rm *.wixpdb
|
rm *.wixpdb
|
||||||
|
|
||||||
# Create a zip archive
|
# Create a zip archive
|
||||||
|
mv spek.exe Spek/bin/
|
||||||
cp LICENSE.rtf Spek/
|
cp LICENSE.rtf Spek/
|
||||||
cp spek.ico Spek/
|
cp spek.ico Spek/
|
||||||
"$SZ_PATH"/7z a spek.zip Spek
|
"$SZ_PATH"/7z a spek.zip Spek
|
||||||
|
12
win/fix-msi.js
Normal file
12
win/fix-msi.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
var msiOpenDatabaseModeTransact = 1;
|
||||||
|
var filespec = WScript.Arguments(0);
|
||||||
|
var installer = new ActiveXObject("WindowsInstaller.Installer");
|
||||||
|
var database = installer.OpenDatabase(filespec, msiOpenDatabaseModeTransact);
|
||||||
|
var sql = "UPDATE `Control` SET `Control`.`Height` = '18', `Control`.`Width` = '170'," +
|
||||||
|
" `Control`.`Y`='243', `Control`.`X`='10' " +
|
||||||
|
"WHERE `Control`.`Dialog_`='ExitDialog' AND " +
|
||||||
|
" `Control`.`Control`='OptionalCheckBox'";
|
||||||
|
var view = database.OpenView(sql);
|
||||||
|
view.Execute();
|
||||||
|
view.Close();
|
||||||
|
database.Commit();
|
12
win/spek.wxs
12
win/spek.wxs
@ -23,7 +23,11 @@
|
|||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<RemoveExistingProducts After="InstallInitialize" />
|
<RemoveExistingProducts After="InstallInitialize" />
|
||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
|
<CustomAction Id="StartAppOnExit" FileKey="spek.exe" ExeCommand="" Execute="immediate" Impersonate ="yes" Return="asyncNoWait" />
|
||||||
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Spek when setup exits" />
|
||||||
|
<UI>
|
||||||
|
<Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="StartAppOnExit">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
|
||||||
|
</UI>
|
||||||
<Icon Id="ProgramIcon" SourceFile="spek.ico"/>
|
<Icon Id="ProgramIcon" SourceFile="spek.ico"/>
|
||||||
<DirectoryRef Id="ProgramMenuSubfolder">
|
<DirectoryRef Id="ProgramMenuSubfolder">
|
||||||
<Component Id="StartMenuShortcut" Guid="165DF12B-D970-49BC-B07B-880B62ABC308">
|
<Component Id="StartMenuShortcut" Guid="165DF12B-D970-49BC-B07B-880B62ABC308">
|
||||||
@ -79,11 +83,17 @@
|
|||||||
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithProgids" Name="Spek.Audio" Value="" Type="string" />
|
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithProgids" Name="Spek.Audio" Value="" Type="string" />
|
||||||
<?endforeach?>
|
<?endforeach?>
|
||||||
</Component>
|
</Component>
|
||||||
|
<Directory Id="bin" Name="bin">
|
||||||
|
<Component Id="Spek" Guid="EC0CA007-EC9E-44E2-B9DE-AE91D3C8EF70">
|
||||||
|
<File Id="spek.exe" Name="spek.exe" Source="spek.exe" />
|
||||||
|
</Component>
|
||||||
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
<Feature Id="All" Title="$(var.ProductName)" Level="1">
|
<Feature Id="All" Title="$(var.ProductName)" Level="1">
|
||||||
<ComponentRef Id="Main" />
|
<ComponentRef Id="Main" />
|
||||||
|
<ComponentRef Id="Spek" />
|
||||||
<ComponentGroupRef Id="Files" />
|
<ComponentGroupRef Id="Files" />
|
||||||
<ComponentRef Id="StartMenuShortcut" />
|
<ComponentRef Id="StartMenuShortcut" />
|
||||||
<ComponentRef Id="DesktopShortcut" />
|
<ComponentRef Id="DesktopShortcut" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user