473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Installer directory

1
Hi,

I have built a web setup project aimed to deploy a web application. It also restores a SQL-server database. The solution consists of a installer assembly and a Web Set Up project.

Problem: I need to include a databaseName.bak file and reference it from the installer class to be able to restore it.

Question: How can I get the directory path to where the installer resides. This could of course be a CD as well as the user's desktop.

The following did not work:
AppDomain.CurrentDomain.RelativeSearchPath;
System.Reflection.Assembly.GetExecutingAssembly(). CodeBase;
System.Reflection.Assembly.GetExecutingAssembly(). FullName;


Any ideas would be appreciated!
Mar 19 '07 #1
0 763

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jeremy Holt | last post by:
I have an Installer Setup project which builds fine. However, if I select Install from within the solution, the installation fails with a message "The installer was interruped before XXXXX could be...
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
3
by: Gerry Abbott | last post by:
I have ODE 2000, as well as other versions of Office. Currently i install and split solutions into mde Fe and mdb Be files at clients site. Then for updates (which exclude changes to the data) i...
0
by: Simon Verona | last post by:
I have a windows forms application that I wish to build an installer for. Part of this application is an .asp webpage that I wish to install alongside the windows application and create a virtual...
3
by: Mark Assousa | last post by:
Hi, I'm having trouble finding the right news group for this posting so here goes... I am attempting to execute some special actions within an installation project for a standard .Net Windows...
1
by: Guy Robinson | last post by:
Target audience is little or no programming experience. I have a win32 only library I need to write an installer for. As part of the installation it must: 1.. find where a program is installed...
10
by: Lauren Wilson | last post by:
I have a desperate short term need for a way to install Access 2003 runtime on client computers. I have the proper license to do so but I cannot seem to find the files to do it like we did with...
8
by: vtxr1300 | last post by:
I've followed 2 very similar tutorials on creating a windows service and an installer. But, after successfully compiling it, I try to do the InstallUtil command, but I get a...
2
by: ketil V. | last post by:
I am trying to install Oracle 8.1.7-3 on a clean SuSE 8.2 - based system, but the Installer will not pop up any interface! What I have done is the following: - Installed 8.2, and upgraded with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.