Quantcast
Channel: biztalkdeployment Work Item Rss Feed
Viewing all articles
Browse latest Browse all 688

Commented Unassigned: BTDF 6: Shortcut arguments too long [10775]

$
0
0
hi,
since the bat files for deploy/undeploy... are dropped in favor of shortcuts, which i dearly appreciated at first glance, we had quite the problem to make them work.
all paths are provided full qualified and therefore can potentially be quite long - too long for shortcut arguments which are limited to 260 chars (and the rest is simply cut off without mentioning).
in our environment some properties were not provided to the msbuild call leading to unexpected results.

our workaround was to shorten the argument list by putting some of the needed properties in the msbuild calls in serverexecute.targets file. an ugly solution since we did not want to modify the original files to prevent messing around again and again when updating.

yes we could have used good'ol'bat-files instead but i like the idea of creating shortcuts, so pls look into this and maybe there is a (clean) way to shorten the paths/arguments?
greetings alex
Comments: ** Comment from web user: getstoopid **

yes there is... and yes i do ;)
but now that i read it again i see that i made a mistake which probably lead to your confusion - the property "Target" of a shortcut is limited to 260 chars - meaning the whole and complete call. the problem here is that it starts with the full qualified path to UacElevate which potentially can be long... or even longer ;)

i modified the xslt file by adding a new shortcut element to uninstall the biztalk solution (undeploy and uninstall msi). in this entry i provide the product id as parameter so that i'm able to call msiexec /x after undeployment. in my first test nothing happend - it wouldn't event start the undeploy process. after playing around a bit with the order of the parameters i finally saw what happened - my parameters where cut-off and when the target came after the product id nothing happened since there now was no entry point to start from...

this is what my shortcut looks like (default, no modification)
_"{Path_to_installed_application}\Deployment\Framework\DeployTools\UacElevate.exe" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\MSBuild.exe" "/p:Configuration=Server /t:LaunchServerDeployWizard /clp:NoSummary;DisableMPLo_ <- missing parts "gging /tv:4.0"

the path to uacelevate.exe is about 120 chars long
i was stunned that it even started since the last " are missing also...


Viewing all articles
Browse latest Browse all 688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>