Elisa,
In the case where application location may change (there could be multiple CD drives on the machine), then best option would be to get UltiDev Cassini installed and create a shortcut icon that will launch both the web server and your application at the same time, without having to register the app with Cassini. UltiDev Cassini can run as a regular (non-service) EXE, take command-line parameters telling where the application is, and host the application until user closes the browser.
If you run UltiDev Cassini executable, "C:\Program Files\UltiDev\Cassini Web Server for ASP.NET 2.0\UltiDevCassinWebServer2.exe", you will see that it has /run mode:
Quote:UltiDevCassinWebServer2.exe /run <PhysicalAppFolder> [<defaultDocument>] [<port> | 0] [<browser path> | nobrowser]
In this mode the server will host an unregistered application at the moment you need, so you can find out where you app is - either by walking through CD drives in the system or by asking a user - and then launch the app.
This feature is widely used for
debugging with UltiDev Cassini, but can also be used in the situation where location of the app is unknown at the installation time.
Please let us know if this information has helped you,
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.