Solved

package and deployment

Posted on 2001-06-24
5
224 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 10 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: Connect to running MS Outlook 4 89
TEMBEDDEDWB how can i change its user agent ? 8 58
Adoquery sql  left join does not work 25 91
VB6 ListBox Question 4 44
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

810 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