.NET C# Java Javascript Exception



Customers can install our product on Windows with a standard MSI package. To automate the installation administrators can use MSIEXEC and MSI parameters to configure our client.

A simple installation can look like this:

msiexec /qb /i "OneOffixx.msi" ... CACHEFOLDER="D:/OneOffixx/"

The “CACHEFOLDER” parameter will be written in the .exe.config file and our program will read it and stores offline content under the given location.

So far, so good.

For Terminal Server installations or “multi-user” scenarios this will not work, because each cache is bound to a local account. To solve this we could just insert the “%username%” enviroment variable, right?

Well… no… at least not with the obvious call, because this:

msiexec /qb /i "OneOffixx.msi" ... CACHEFOLDER="D:/%username%/OneOffixx/"

will result in a call like this:

msiexec /qb /i "OneOffixx.msi" ... CACHEFOLDER="D:/admin/OneOffixx/"


I needed a few hours and some Google-Fu to found the answer.

To “escape” those variables we need to invoke it like this:

msiexec /qb /i "OneOffixx.msi" ... CACHEFOLDER="D:/%%username%%/OneOffixx/"

Be aware: This stuff is a mess. It depends on your scenario. Checkout this Stackoverflow answer to learn more. The double percent did the trick for us, so I guess it is “ok-ish”.

Hope this helps!

.net web csharp asp.net javascript html5 asp.net-mvc jquery css iis
1 Meinung
Gotoassignmenthelp Service endeavors to satisfy the advanced education guidelines of the college/ university through the best quality assignments when you require Essay Writing Service Canada. Assignments are composed consistently and all mistakes are adjusted for an immaculate completion in our Assignment help administration on the web. At the point when you pick our Management Assignment Help online assistance, our faculty will consider the quality and your evaluation criteria. On taking Gotoassignmenthelp online assistance, we ensure the first substance and faultless work. Educators of the rumored colleges believe assignments to be the most productive technique to evaluate a students' composing bore alongside their comprehension of the course. Gotoassignmenthelp is the best Marketing Assignment Help online supplier in around the world.
Schreibe einen Kommentar:
iis css jquery asp.net-mvc html5 javascript asp.net csharp web .net
Entweder einloggen... ...oder ohne Wartezeit registrieren
Passwort wiederholen