PDA

View Full Version : 3 shortcuts being created



NewsArchive
03-02-2007, 09:06 AM
I have an install script that works just fine. Creates a program group
under programs with the uninstall and the program.

I also create a shortcut on the desktop to launch the program. That works
fine as well...

unless

the customer already has an old version of the program installed (which was
done using the old wise install). Then, it leaves the origional shortcut and
creates THREE additional identical shortcuts. I have made the shortcut as
identical to the old wise one as possible....Doing an uninstall will remove
all three shortcuts

Also, if i reinstall the sb script again, over the top of the above without
doing an uninstall, it creats a fourth shortcut without removing any of the
three created above.


Any ideas??? We were getting ready to roll this thing out, but need a fix
for this..screenshot of the sb shortcut screen is attached....cant have four
shortcuts on the desktop all pointing to the same program...

Summary

Everything works as it should except for the multiple desktop icons that are
created by the sb install

a. New install - works fine...1 shortcut created on the desktop
b. SB Install over old wise install - sb creates 3 additional shortcuts. SB
uninstall will remove all three shorts that were created and rolls back to
old wise installed program
c. SB Install over old wise install - creates 3 additional shortcuts, SB
install again, creates another icon. SB uninstall now removes all four
shortcuts and rolls back to old wise installed program

help....

Thanks

Skip

NewsArchive
03-02-2007, 09:06 AM
This is interesting. I had _exactly_ the same issue with my SB6 script.
And that was not all. When I renamed the old shortcut by adding letter "x"
to the end and then run the install, duplicate My Computer was created
with the name of my shortcut.

I have not investigated my case any further as I'm very busy with other
work.

Looking forward to hear about this.



Timo Lahtinen
Helsinki Finland

NewsArchive
03-02-2007, 09:06 AM
I have had the same now and again since my very first SB5 installs.
It should be impoosible to have 3 files with the same name in one folder,
but Friedrich has a way of making miracles...
Its so, that one of the 3 has 'Properties', and if you delete that one, the
two others disapears atr the same time.

Best regards

Edvard Korsbęk

NewsArchive
03-02-2007, 09:07 AM
Thanks guys.....at least I am not loosing what little bit of my mind I have
left<g>...

I have sent Friedrich both installs as well as the script so I hope he can
reproduce the problem. It was doing it consistently for me...

Skip

NewsArchive
03-02-2007, 09:07 AM
SetupBuilder does *not* create multiple shortcuts. You can verify this
by checking the registry log. There should only be *one* shortcut entry,
not two or more.

This is caused by a registry problem on their machines.

I hope the following helps:

-------------------------------------------------------------------------

QUESTION:

I have a friend that whenever he creates a shortcut on his
desktop it gets doubled as soon as the screen refreshes.
This happens also when he installs something and the
shortcut is placed that way as well. When he deletes one
of the shortcuts, they both will disappear, but only one
shows up in the recycle bin. I have searched the net for
a week and haven't come up with anything! Please help!!

-------------------------------------------------------------------------

ANSWER:

Hi,

Follow these steps, courtesy of David Candy:

Open Registry Editor (Regedit.exe) and go to these locations:

Backup the registry before modifying it.

[HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Exp lorer\User
Shell Folders]
Set "Desktop" value as "%USERPROFILE%\Desktop"

[HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Exp lorer\Shell
Folders]
Set "Desktop" value as C:\Documents and Settings\<Username>\Desktop

Replace <Username> with the actual user profile name.
[HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Explorer\User
Shell Folders]
Set "Common Desktop" value as "%ALLUSERSPROFILE%\Desktop"

[HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Explorer\Shell
Folders]
Set "Common Desktop" value as "C:\Documents and Settings\All Users\Desktop"

Restart Windows.

--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

-------------------------------------------------------------------------

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-02-2007, 09:07 AM
No, not my miracle <g>. It's a registry problem on their machine! You can
Google and find tons of related messages.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-02-2007, 09:07 AM
To make a first clas "point. click. ship" miracle:
Let SB6 (7,8....) check for the error and correct it if it is there.
In my experience, its quite a lot of the PC's wich are erronous (Spelled
somewhat diiferent <G>).

Funny enough, SB4 never found this error.

Very best regards

Edvard Korsbęk

NewsArchive
03-02-2007, 09:07 AM
Edvard,

Well, SetupBuilder 4 is more than five years old and why do you think does
it *not* work on Vista, cannot install to the Quick Launch, etc.?

Because it does not use the recommended functions for 2000, 2003, XP, Vista
special folder detection.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-02-2007, 09:08 AM
Skip,

IMO, in your case it is not caused by a registry defect. I debugged your
installations and there are two problems:

1. Desktop does not "refresh". If you do it manually (right-lick->Refresh),
two Shortcuts will disappear.

2. Your Wise installation installs the shortcut into the Desktop folder for
the Current User, your SetupBuilder installer installs into the Desktop
folder for All Users. Result: you have two identical Shortcuts!

I will add a function to SB61 so you can refresh the Desktop
programmatically from your script.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-02-2007, 09:08 AM
I think there is no need to build-in a "Refresh Desktop" function because we
can already do this with only one line.

The following refreshes the Desktop.

Call DLL "shell32.dll" -- Function "SHChangeNotify" (long,long,*long,*long)
(134217728, 0, NULL, NULL)

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-02-2007, 09:08 AM
I have attached a "Refresh Desktop.sbi" include script. You can use this to
refresh your Desktop.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-02-2007, 09:11 AM
Friedrich, yaddaman.

Timo Lahtinen
Helsinki Finland

NewsArchive
03-02-2007, 09:11 AM
:)

Friedrich

NewsArchive
03-05-2007, 10:33 AM
> Well, SetupBuilder 4 is more than five years old and why do you think does
> it *not* work on Vista, cannot install to the Quick Launch, etc.?
>
> Because it does not use the recommended functions for 2000, 2003, XP,
> Vista special folder detection.
[SNIP]
That was not the point, the point was that 3 desktop icons was introduced
with SB5 seen from my customers point of view - They have absolutely no idea
of how to reset anything in the registry, matter of factly, 95% don't know
it exists.

----------------

Your include script with refresh desktop is, I belive, a much better answer,
and (I have mot tested yet, but will surely do!) the answer for my request
for a true miracle..

Best regards

Edvard

NewsArchive
03-05-2007, 10:33 AM
Friedrich's included script works fine. Only downside is that you can see
the three icons created, then go away when the rrefresh is done...Still it
works great!

Skip

NewsArchive
03-05-2007, 10:33 AM
Thanks Friedrich!
Does exacctly what i needed.

Best regards

Edvard