Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

package and deployment

Posted on 2001-06-24
5
Medium Priority
?
247 Views
Last Modified: 2013-11-23
when use package and deployment to make my setup project,
i want to add a file to my project that will be installed on the target computer in a specific directory such as "c:\ashraf" not to the path that exist in the list ($apppath,...)
0
Comment
Question by:aft
  • 2
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
profya earned 20 total points
ID: 6223592
Ok, run the Package Deployment Wizard, start bulding your package and then add your file normally from the INCLUDED FILES screen. Adjust the location where the file will be installed in from INSTALL LOCATIONS screen (comes 5 steps after adding files ) take advantage of the package variables "$(ProgramFiles)" for example. Now to install a backup utility in the following location: "program files\MyApp\Backup" for example you can use "$(ProgramFiles)\MyApp\Backup" as an install location for your backup.exe file.
0
 

Expert Comment

by:oldbie
ID: 6223607
The "Install Locations" window in the P&D wizard has a column named "Install Location" (last one on the right). It can be dropped down to choose from about 8 directiories, such as "Common Files", "Fonts", etc. But there's no "C:\ashrat" on the list :) So, if you really need the file in a specific directory, maybe in your main form_Load routine, you could use FileCopy. e.g.:

dim sourceName, destName
sourceName = appPath$ & "\myFileName"
destName = "c:\ashrat\myFileName"
FileCopy sourceName, destName

You can also use Kill sourceName, if you want to get fancier and put in some logic to move the file the first time the app runs.

0
 

Expert Comment

by:oldbie
ID: 6223616
profya, please submit answers as comments. when you make it a proposed answer, it locks the question so no one else will see it. read the instructions at http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp

Thanks!
0
 
LVL 14

Expert Comment

by:profya
ID: 6223758
Oldbe,
Thanks, but when does I used "Answer" rather than "Comment"?
The link you gave me contains a lot of lines to read. Use my e-mail profya@yahoo.com to answer.
0
 

Author Comment

by:aft
ID: 6224042
can i put two files with the same name but located into two different directories in the same project using package and deployment and install them into two differnt directories also?
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question