Hi Kira,
Thank you very much for your reply, the first link I hadn't seen - realized that I have mostly been searching for LAA and "ClickOnce" - which that post did not have in it, sorry for that.
Anyway, I will try your suggestion, but what I'm doing at the moment is almost the same. The steps my script performs are:
(I've left out some folder hopping)
## script start ##
:: In post-build - set the flag
editbin /LARGEADDRESSAWARE <path>/obj/Publish/app.exe
:: After the build has completed
:: Remove .deploy from all files
:: for each file recursively do, if extension is deploy, rename to drive\path\name
for /R %%f in (*) do if %%~xf==.deploy move "%%~f" "%%~df%%~pf%%~nf"
:: Re-sign all dlls and exe with real certificate
for /R %BIN_DIR% %%f in (*.dll) do signtool sign /a /i "Thawte" /t http://timestamp.verisign.com/scripts/timstamp.dll "%%f"
for /R %BIN_DIR% %%f in (*.exe) do signtool sign /a /i "Thawte" /t http://timestamp.verisign.com/scripts/timstamp.dll "%%f"
:: UPDATE APPLICATION MANIFEST
mage -Update "app.exe.manifest"
:: rename files to .deploy
for /R %%f in (*) do if not %%~xf==.manifest move "%%~f" "%%f.deploy"
:: SIGN APP MANI
mage -Sign "app.Exe.manifest" -CertHash XXXXXXXXXXXXXXXXXXX -TimeStampUri http://timestamp.verisign.com/scripts/timstamp.dll
:: CREATE DEPLOY MANI
mage -Update app.application -AppManifest "app.Exe.manifest" -providerUrl %PROVIDER_URL%/app.application
:: SIGN DEPLOY MANI
mage -Sign app.application -CertHash XXXXXXXXXXXXXXXXXXX -TimeStampUri http://timestamp.verisign.com/scripts/timstamp.dll
:: SIGN BOOTSTRAPPER
signtool sign /a /i "Thawte" /t http://timestamp.verisign.com/scripts/timstamp.dll "%PUBLISH_SOURCEDIR%\%BOOTSTRAPPER_FILE_NAME%"
And finally an XCOPY deployment of all files to the production server.
## script end ##
The final touché: I'm normally running this script with additional obfuscation steps - and the script handles the obfuscated dlls nicely by the re-signing and re-generation of manifests. That is why I'm puzzled that it's not working for the LAA flag.
Will it make a difference if I use SN.exe instead of SIGNTOOL.exe?
Thank you again.
Sincerely
Andreas