Highlighted

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

Community Beginner ,
Nov 25, 2016

Copy link to clipboard

Copied

We have an old version of our application that was successfully code signed using a Thawte SHA 256  certificate. This certificate expired and we are now using a new one.

swd.png

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

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."

TOPICS
Development

Views

414

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Community Beginner ,
Nov 25, 2016

Copy link to clipboard

Copied

We have an old version of our application that was successfully code signed using a Thawte SHA 256  certificate. This certificate expired and we are now using a new one.

swd.png

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

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."

TOPICS
Development

Views

415

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 25, 2016 0
Community Beginner ,
Nov 28, 2016

Copy link to clipboard

Copied

Can anyone help?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 28, 2016 0
Community Beginner ,
Jan 16, 2017

Copy link to clipboard

Copied

Still looking for solutions, can anyone from Adobe suggest any solutions please?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 16, 2017 0
Adobe Employee ,
Jan 17, 2017

Copy link to clipboard

Copied

Hi,

This usually occurs, when you have an already existing application with same name but packaged with a different certificate. The workaround here is to uninstall the already existing application and install the new one.

You may try adding script to uninstall the previous application before installing the newer version!

Thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 17, 2017 0
Community Beginner ,
Jan 18, 2017

Copy link to clipboard

Copied

Hi Amrita,

Thanks for the response! I am trying to renew the certificate that's expired, with a renew one I got from Thawte, not change it to a different one. The problem is, that that all of my company's clients have to uninstall and reinstall the application every time if they are on Mac. And since they just see this error, it's not apparent that they have to reinstall it every time, so we receive hundreds of support emails, because over time we have tens of thousands of downloads!

Any additional help on resigning would be highly appreciated!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 18, 2017 0
Adobe Employee ,
Jan 18, 2017

Copy link to clipboard

Copied

Hi,

I guess this is the only workaround for the problem. This a limitation by the OS architecture.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 18, 2017 0