Indigo Rose Software
  #1  
Old 07-19-2007
cdundee cdundee is offline
Forum Member
 
Join Date: Dec 2005
Posts: 43
I cannot remove some files

When I try to remove some files, I get an error message: Failed to remove item: "c:\foldername\filename.txt".

Does anyone know the reason why the file cannot be removed?

Plus, I tried to remove the component but nothing happens i.e., after I click on remove button the component stays in place...it is not removed.

The file I am trying to remove has a shortcut but I still cannot remove the file even after removing the shortcut.

Thanks.
Reply With Quote
  #2  
Old 07-20-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Are you trying to remove a file from the project (inside Setup Factory), or are you trying to make an installer that removes a file during an installation?

Can you describe the steps you're taking in greater detail?
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
  #3  
Old 07-20-2007
cdundee cdundee is offline
Forum Member
 
Join Date: Dec 2005
Posts: 43
I am trying to remove the file from the project (inside setup Factory).

I created a setup factory project with some files in it. I went to the properties of two files (one at a time) and then checked the checkbox to create program menu shortcut. I saved my project and generated the setup.exe file. Then I started removing the files from the project. All the files were removed successfully except the ones that I checked the checkbox for shortcut. I dont know if it was a coincidence that only the files with shortcuts checked were not removed or it is a bug.
Neither the toolbar remove button nor right-click remove option worked. I got an error:
Failed to remove item: "c:\foldername\filename.txt"

No matter what I do I cannot remove the file from the project.

Thanks.
Reply With Quote
  #4  
Old 07-20-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Hmmm, that definitely shouldn't happen.

Are you able to reproduce this in a new project?

What version of SFWI are you using?
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
  #5  
Old 07-21-2007
cdundee cdundee is offline
Forum Member
 
Join Date: Dec 2005
Posts: 43
I am using version 1.1.1004.0. This has happened twice in two separate projects. I will try to keep an eye on this and let you know if this happens again.

Thanks.
Reply With Quote
  #6  
Old 07-22-2007
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
For what it's worth, I am unable to replicate this either using 1004 on a brand new project.

However, I was able to replicate on an old (I think probably beta built project) using 1004 where the original file was missing (shown in red) and the destination set to ProgramFilesFolder (INSTALLDIR). I don't know whether it is the fact the file no longer exists or the destination causing the problem. Obviously beta built project I would not expect to ncessarily work through into production.

I've attached the project as it was only ever used in beta testing, never completed and has nothing confidential in it if it helps.

Rgds John
Attached Files
File Type: zip Hadup.zip (17.7 KB, 1 views)
Reply With Quote
  #7  
Old 07-31-2007
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
Has there been any resolution to this as it is now affecting a brand new project I have built in 1004?

The steps I took were (if it helps):

a) Added files and folders from PF\Draeger folder on source media.
This then became PF\MY PRODUCT\Draeger in SUFWI.
b) Renamed MY PRODUCT against INSTALLDIR to Draeger.
c) Moved folders underneath INSTALLDIR\Draeger up one level so they are now sub-folders of INSTALLDIR.
d) Tried to delete a EXE file. Got the 'Failed To Remove Item:' message. However deleting a INI file (for example) worked fine as did all other non-EXE files I tried.

Note I have not yet built a MSI from this project.

Rgds John
Reply With Quote
  #8  
Old 08-01-2007
tdexter tdexter is offline
Forum Member
 
Join Date: May 2007
Posts: 40
I just ran into the same issue. The file is a .EXE, that may be the key(.EXE) I am trying to finish up on our first MSI and now hit a brick wall, help.
Reply With Quote
  #9  
Old 08-01-2007
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
tdexter,

Can you email me the offending project file so that I can take a look at it? Email brett at indigorose dot com
Reply With Quote
  #10  
Old 08-02-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Sorry for the late response, I'm away on holidays right now.

Adam and I got our hands on a project that had this bug last week, and I managed to track down the bug that was preventing the files from being deleted. I was able to fix the bug, so in the current internal build we should be able to delete those files now. (Brett: if you load one of these projects into a current build of SFWI, you should be able to delete the files.) The fix will be released in the next version (1.1.1005?).

In the meantime, there is a workaround that you can perform to make those files deletable if you're familiar with XML.
  1. Make a backup of your setup factory project file (just in case).
  2. Open the project file in a text editor like UltraEdit or Notepad, or a good XML editor if you have one.
  3. Search for the component ID or filename of the file that can't be deleted. You should find a SetupItem element for that file and component ID.
  4. Find the UserProfileComponentId in that SetupItem element. (It will be inside a ShortcutData element.) It should be something like sufupscid_0001, sufupscid_0002, etc.
  5. Load the project file into Setup Factory, go to the Components dialog, and create an empty component with that name (e.g. sufupscid_0001). Click OK.
  6. You should now be able to remove the file from the file list. (When you remove the file, the component you created will be removed automatically.)

Sorry if that isn't very clear; I'm going from memory.
__________________
--[[ Indigo Rose Software Developer ]]

Last edited by Lorne; 08-02-2007 at 12:51 AM.
Reply With Quote
  #11  
Old 08-02-2007
tdexter tdexter is offline
Forum Member
 
Join Date: May 2007
Posts: 40
That worked out great.

Thank you
Reply With Quote
  #12  
Old 08-02-2007
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
Ditto Thanks Lorne.

Quote:
Sorry if that isn't very clear; I'm going from memory.
I too am on vacation but (with deference to my old Novell server) I tend to get 'short term memory allocation exhausted' messages if I try to recall from my brain storage what you just managed to type from yours!

Have a good one.

Rgds John
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
Example Uninstall -Remove other files using ListBox Screen Eagle Setup Factory 7.0 Discussion 3 12-01-2005 01:48 AM
Unable to find software? NigelLacey Visual Patch 2.0 4 10-11-2005 11:35 AM
method to index/compare user's files for update? intel352 Setup Factory 6.0 0 01-15-2003 04:08 PM
INFO: Why Files are Renamed in the DATA Folder Support AutoPlay Media Studio 4.0 Examples 0 10-24-2002 04:36 PM
HOWTO: Remove Files that were Installed by a Patch or Alternate Source Support Setup Factory 6.0 Knowledge Base 0 09-24-2002 10:49 AM


All times are GMT -6. The time now is 04:51 AM.


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