Scenario:


My application Places a shortcut in ALLUSERS Start menu.
When a logged in user launches this shortcut , a new shortcut gets downloaded to same location with same name (in this user profile).

e.g.
My MSI will place the shortcut C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk

After launching the above shortcut we will have new shortcut on following path:

C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk

Problem :
The newer downloaded is not pointing to correct path.

Solution Tried:

case1:

Install the MSI
launch the shortcut through script.
wait for time till other shortcut is downloaded to user profile.
delete the shortcut from user profile.

Issue with this case : the application is launched , couldn't made it launch silently.


Case 2:

Placed shortcut in Desktop.

Issue : what if user try to launch the shortcut from
C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk.



Note: shortcut contain following command:

java -args "servername"

Any suggestion would be appreciated :)
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
i have few more questions...

Is the shortcut getting created all time??( every time when you launch the application).

if shortcut getting created once per user during the first launch ... u can try to check with installrite or picture taker to find if any keys or configuration added to current user...
and add them to the package...


Is shortcut exe has some arguments ...
if any argument to the target exe.. check what happens when it is removed...
Answered 12/18/2011 by: mahendraKumar
Senior Yellow Belt

Please log in to comment
0
Here are answers:
- No only first time after we launch the shortcut.

- I have tried and the information that gets downloaded is user specific and it varies so it can't be included in the package.

-yes as mentioned in the first post
java -servername "servername"
Answered 12/19/2011 by: rock_star
Black Belt

Please log in to comment
0
Clear the 'Application' Event log, then click the original shortcut. If the application triggers self-healing (which will show up in the Event log) then the MSI has a user-level feature which is creating the shortcut. It should be a simple matter of tracking it down.

If the application is creating the new shortcut, if you don't already have one, you need to obtain a bright, shiny new Packager's Baseball Bat and then visit the vendor.
Answered 12/19/2011 by: VBScab
Red Belt

Please log in to comment
0
This issue is related with application rather the application installer.

ALLUSERSPROFILE shorcut is overshadowed with the user level shortcut.


Vendor == Client so i can't beat him . I need money for my expenses [;)]
Answered 12/19/2011 by: rock_star
Black Belt

Please log in to comment
0
Yes, I've seen such installation authors who want to deliver user based components by this odd way, asking the users to run the install themselves. And, they call it a MSI based setup.

@OP - If they want it this way, why don't you just use a CopyFile script to copy the shortcut in %userprofile% and then delete the %allusersprofile% shortcut?
Of course, MIND THE GAP ! before you try and record user response.
Answered 12/19/2011 by: SandeepPanat
Orange Senior Belt

Please log in to comment
0
User doen't install anything . When application launches for first time shortcut and some files gets populated in user profile .( like new certificate , shortcut)

@Sandeep It's hard to manage these type of scenerio copy file (report in SCCM).

Case3 :

I have tested and copied the Read Only shortcut to roaming profile (C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
) , So when a user launches the main shortcut , newer shorcut is not downloaded to the roaming location (just gets a prompt for first time that the shortcut is not downloded).

Application is working as expected .
Answered 12/23/2011 by: rock_star
Black Belt

Please log in to comment
0
I'm confused. Is your issue resolved now?
In your first post, you mentioned the problem.

ORIGINAL: rock_star
Problem :
The newer downloaded is not pointing to correct path.


And, now

ORIGINAL: rock_star
So when a user launches the main shortcut , newer shorcut is not downloaded to the roaming location (just gets a prompt for first time that the shortcut is not downloded).

Application is working as expected .


You want the shortcut to be created or not?
Answered 12/23/2011 by: SandeepPanat
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity