简体   繁体   English

由于安装程序文件已损坏,无法安装该应用程序。 尝试从应用程序作者那里获取新的安装程序文件

[英]The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author

We have an old version of our application that was successfully code signed using a Thawte SHA 256 certificate. 我们的应用程序有一个旧版本,该版本已使用Thawte SHA 256证书成功进行了代码签名。 This certificate expired and we are now using a new one. 该证书已过期,我们正在使用新证书。

在此处输入图片说明

When the user upgrades from the old version of the application to the latest, they encounter this error: Reinstalling the application gets around the issue but we want a more professional solution. 当用户从应用程序的旧版本升级到最新版本时,他们会遇到此错误:重新安装应用程序可以解决此问题,但我们需要更专业的解决方案。

I used the following shell script to sign it, which seems to run successfully, but am still getting the error 我使用以下shell脚本对其进行了签名,该脚本似乎已成功运行,但仍然出现错误

if (($# < 1))
then
echo "Usage: $0 version"
exit -1
fi
echo "Fixing file permissions..."
chmod a+x bin-debug/bin/SWC

echo "packaging Air file for mac..."
cd bin-debug

/Volumes/Macintosh\ HD/Users/Shared/flex_sdk_4.6/bin/adt -package -storetype pkcs12  -keystore ../../../thawte\ certificates/airSigningBackup2018.p12 -storepass myPassword -target air ../SW_Desktop_mac.air DieBook-app.xml DieBook.swf bin/SWCM bin/SWCMLE builddate icons
cd ..

/Volumes/Macintosh\ HD/Users/Shared/flex_sdk_4.6/bin/adt -migrate -storetype pkcs12 -keystore ../../thawte\ certificates/airSigningBackup2016.p12 -storepass myPassword SW_Desktop_mac.air SW_Desktop_mac_migrated.air

/Volumes/Macintosh\ HD/Users/Shared/flex_sdk_4.6/bin/adt -package -target native SWD_$1.dmg SW_Desktop_mac_migrated.air

echo "SWD_$1.dmg should be ready now."

As far as i remember, this issue happens when you have multiple versions of the same app with same version number installed. 据我记得,当您安装了相同版本的同一应用程序的多个版本时,就会发生此问题。 I don't remember if its the verison number but i'm sure it's one of the unique identifiers ind the XML. 我不记得它的版本号,但我确定它是XML中唯一的标识符之一。 So for each new version change that identifier and all should be well. 因此,对于每个新版本更改,该标识符和所有标识符都应该很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM