AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Install program

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Jerry



Joined: 24 Jun 2004
Posts: 39

PostPosted: Fri Oct 08, 2004 6:28 pm    Post subject: Install program Reply with quote

(This happened about 2 installs ago...so maybe its fixed now for version 1.0.20. )

I install autohotkey to the directory
C:\Program Files\AutoHotkey
while I was adding scripts, I decided to create a new directory
C:\Program Files\AutoHotkey\Extras\udf Embarassed
and I put a couple of scripts in it.
When I installed the next version of AutoHotKey, it deleted the new directory and the scripts. (I made sure not to use autohotkeys folders again and that's why I don't know if this is still the install program's behavior)

Can the install program avoid deleting directories a previous version did not make or can you make a backup of the directory and its contents before the install program deletes (or put the deleted stuff in the recycle bin) so that a naive user can recover anything that was accidentally deleted during the install.

Jerry
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Oct 08, 2004 6:32 pm    Post subject: Reply with quote

Yes that has since been fixed. It was wrong to delete the Extras folder and I apologize for any loss of files it caused.
Back to top
View user's profile Send private message Send e-mail
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Fri Oct 08, 2004 7:18 pm    Post subject: Reply with quote

I have noticed, but not mentioned before.. but when i install AHK on a machine when a user is logged in (meanng not an Administrator), when it tries to install the Template.ahk i get an error that the file can not be installed. I can hit Ignore and it finishes the install but with out the template.ahk file.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Oct 08, 2004 8:39 pm    Post subject: Reply with quote

The theory is that most people would prefer AHK installed for "all users". There should probably be an option in the installer to install for only the current user, in which case the template could be copied into %USERPROFILE%\templates rather than %WinDir%\ShellNew. However, I don't think %USERPROFILE%\templates works the same was as ShellNew. It might not even be related.
Back to top
View user's profile Send private message Send e-mail
lingoist



Joined: 05 Oct 2004
Posts: 120
Location: Brasília, Brazil

PostPosted: Thu Oct 21, 2004 4:59 am    Post subject: Reply with quote

Chris,

Is there a function to find Windows folder (such as %WinDir%)? My Windows is in Portuguese and I've had some problems with it!


Thanks,
Alfredo
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Oct 21, 2004 12:55 pm    Post subject: Reply with quote

Are you saying that %WinDir% doesn't contain the correct value or doesn't exist on your system? In such cases it can probably be fetched using RegRead. But I will make a note to add a built-in variable for this.
Back to top
View user's profile Send private message Send e-mail
lingoist



Joined: 05 Oct 2004
Posts: 120
Location: Brasília, Brazil

PostPosted: Thu Oct 21, 2004 2:04 pm    Post subject: Reply with quote

Chris,

Program Files is my worst problem. Here in Brazil, some computers have C:\Arquivos de programa (Portuguese version) and others C:\Program Files (English version). It also occurs with Windows folder. However, it is less often.

Thanks again.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Oct 21, 2004 3:17 pm    Post subject: Reply with quote

Try using %ProgramFiles%. It should exist on all OSes except Windows 9x (but maybe only Windows 95 lacks it). I've made a note to add more built-in variables for these in a future version.
Back to top
View user's profile Send private message Send e-mail
lingoist



Joined: 05 Oct 2004
Posts: 120
Location: Brasília, Brazil

PostPosted: Thu Oct 21, 2004 4:08 pm    Post subject: Reply with quote

It didn't work in Windows 98se.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group