Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

install cassini prerequisit in custom folder
joggs
#1 Posted : Monday, June 21, 2010 11:58:27 PM(UTC)
Groups: Member
Joined: 6/20/2010(UTC)
Posts: 4

Hi,
I'm going to use cassini in command line mode from my wpf application which means that i will have to start a commandline process from my c# code.
The problem I have is that I need to know exactly what folder the cassini web server prerequisit was installed into (program files x86 for 64bit, "Program" if you have swedish windows and so on).

Do you know how I can get a handle to that folder in my code, or maybe better, can I install the cassini web prerequisit into the same folder as my wpf application? I havent found any setting for customize the installfolder when setting it up as a prerequisit in my setup project in visual studio. it is importsant that the user cannot alter the install path which would result in that my wpf program cannot find the webserver exe.
Ultidev Team
#2 Posted : Tuesday, June 22, 2010 8:32:06 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

UltiDev Cassini is always installed into "UltiDev\Cassini Web Server for ASP.NET 2.0" subfolder of the "Program Files" on x86 machines, or "Program Files (x86)" x64 machine. Those paths can be retrieved by using
Code:
string pfPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
string pfPathX86 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);


Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.