Indigo Rose Software
  #1  
Old 06-06-2007
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Adding Root Level Folder

How do I add a root level folder? For example I need to create the folder C:\My Folder\. I cannot see a way to do this. I can only add it as a subfolder of the builtin root level folders.
__________________
Dermot

AMS Add-ons - xDialog.com

A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
Reply With Quote
  #2  
Old 06-06-2007
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Dermot,

Windows Installer doesn't like doing that very much. In general, it is preferred that you use a mapped shell folder such as Program Files, etc.

However, if you really need to do that, here is how:

- Setup the project normally with INSTALLDIR being [ProgramFilesFolder]My Product (or whatever)
- Add a Set Folder custom action that sets INSTALLDIR to "C:\My Folder" (no quotes)
- In the attributes tab, set the scheduling to be Immediate - First Sequence
- Add two timing entries - one for InstallUISequence and one for InstallExecuteSequence - make them both happen After "CostFinalize" - also, use the condition "NOT Installed"

See the attached project file for an example
Attached Files
File Type: zip force_installdir.zip (17.0 KB, 20 views)
Reply With Quote
  #3  
Old 06-06-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
There's also a couple Windows Installer properties that might be useful in setting up your custom action or related folder search.
  • WindowsVolume - the drive where Windows is installed. Which is usually C: but not necessarily so.
  • ROOTDRIVE - the default destination drive for the installation. Can seem somewhat unpredictable if it isn't set explicitly since it isn't the first drive, it's the drive with the most free space.
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
  #4  
Old 06-06-2007
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Thanks Brett and Lorne. That was very helpfull. I think can achieve what I want now.
__________________
Dermot

AMS Add-ons - xDialog.com

A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Root Folder ? twilford AutoPlay Media Studio 6.0 1 05-31-2007 02:04 AM
IF else statement synistics AutoPlay Media Studio 6.0 3 04-21-2007 01:33 PM
cookies goukilord10 AutoPlay Media Studio 5.0 6 05-20-2005 05:08 PM
Question about running cdrom image from root level with .am3 abduly AutoPlay Media Studio 4.0 1 09-11-2003 12:36 PM
INFO: The Explore Button on the Distribution Folder Dialog Support AutoPlay Media Studio 4.0 Examples 0 10-11-2002 01:06 PM


All times are GMT -6. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software