Optimized Installer
parent
3805813558
commit
91255b9c2b
@ -1,4 +1,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*.pro.user
|
*.pro.user
|
||||||
build*
|
build*
|
||||||
*/data/*
|
/installer/packages/com.dkmtech.pacalculator/data/*
|
||||||
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Installer>
|
<Installer>
|
||||||
<Name>PA Calculator</Name>
|
<Name>PA Calculator</Name>
|
||||||
<Version>1.0.0</Version>
|
<Version>0.2</Version>
|
||||||
<Title>PA Calculator Installer</Title>
|
<Title>PA Calculator Installer</Title>
|
||||||
<Publisher>DKM-Tech</Publisher>
|
<Publisher>DKM-Tech</Publisher>
|
||||||
<StartMenuDir>PA Tools</StartMenuDir>
|
<StartMenuDir>PA Tools</StartMenuDir>
|
||||||
<TargetDir>@ApplicationsDir</TargetDir>
|
<TargetDir>@ApplicationsDirX64@\DKM-Tech\PA Calculator</TargetDir>
|
||||||
</Installer>
|
</Installer>
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
Component.prototype.createOperations = function()
|
|
||||||
{
|
|
||||||
component.createOperations();
|
|
||||||
if (systemInfo.productType === "windows") {
|
|
||||||
component.addOperation("CreateShortcut", "@TargetDir@/PA Calculator.exe", "@DesktopLocation@/PA Calculator.lnk"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Package>
|
||||||
|
<DisplayName>Installer</DisplayName>
|
||||||
|
<Description>DKM-Tech Software Installer</Description>
|
||||||
|
<Version>0.2</Version>
|
||||||
|
<ReleaseDate>2021-11-07</ReleaseDate>
|
||||||
|
<Name>com.dkmtech.installer</Name>
|
||||||
|
<Virtual>true</Virtual>
|
||||||
|
<UpdateText>First Installer</UpdateText>
|
||||||
|
</Package>
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
function Component()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Component.prototype.createOperations = function()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
// call the base create operations function
|
||||||
|
component.createOperations();
|
||||||
|
if (installer.value("os") == "win") {
|
||||||
|
try {
|
||||||
|
var userProfile = installer.environmentVariable("USERPROFILE");
|
||||||
|
installer.setValue("UserProfile", userProfile);
|
||||||
|
component.addOperation("CreateShortcut", "@TargetDir@\\PA_Calculator.exe", "@UserProfile@\\Desktop\\PA Calculator.lnk");
|
||||||
|
} catch (e) {
|
||||||
|
// Do nothing if key doesn't exist
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue