Solved

package and deployment

Posted on 2001-06-24
5
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

623 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