Reply to post

Hot!Startup settings disapear on closing "Startup and Tray Icon" window.

Author
JanP
User
  • Total Posts : 0
  • Scores: 0
  • Reward points: 0
  • Joined: 2018/07/13 03:45:49
  • Status: offline
2018/11/26 08:24:57 (permalink)
0

Startup settings disapear on closing "Startup and Tray Icon" window.

Hello, 
our user's experience, that the 'Auto-start with windows' option in the 'Startup and Tray Icon' window is blank again, after closing the 'Startup and Tray Icon' window, and reopening it. Also, HyperSnap is never added to the AutoStart folder of the user. 
 
Our affected Systems:
Windows 10, 1709  (64bit)
HyperSnap 8.16.07 (64bit)
Users don't have local administrative permissions.
 
I used procmon.exe to trace the issue. If I select the option  'Auto-start with windows', HyperSnap doesn't seem to try to write a lnk-file to the user's startup folder (shell:startup). Even not, if the user is a local administrator.  
If I select the option 'For all users on this computer', Hypersnap successfully writes a file: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\HyperSnap 8.lnk". 
But this requires administrative rights. 
 
Our users have their startup folder redirected (Profile redirected folders) to a personal network drive, which is also using Offline Files for sync. Example for a user's shell:startup folder: 
\\server\share$\somefoldernames\AppData\Microsoft\Windows\Start
I tried to disconnect the drive and used 'Subst x: c:\users\public' for testing. But Hypersnap still didn't write the file. 
According to procmon.exe, Hypersnap doesn't even try to write the lnk file. 
 
I don't see any error message, nor a hint in the procmon trace. Any idea? 

6 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/26 13:50:28 (permalink)
    0
    HyperSnap takes the path to user Startup folder from the Registry, under the following path:
     
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
     
    The value it reads there is "Startup" REG_SZ value. What is this value on your users' computers? I don't know how I could programmatically find out a redirected user folder. If you have this information, please share and I may be able to implement such change in the next release of HyperSnap 8.
     
    Greg
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/27 05:30:58 (permalink)
    0
    Hello Greg, 
     
    the value in that registry key is a FQDN based UNC path. About like this (slightly changed):
    \\servername.dns\sharename$\profile redirected folders\AppData\Microsoft\Windows\Start Menu\Programs\Startup
     
    So the profile redirection setting has already been applied to the registry key. It is not a local drive letter, but a UNC path. May this have an impact? 
     
    Best regards, 
    Jan
     
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/27 06:59:00 (permalink)
    0
    I did a test, by changing the registry key to 'C:\users\public\', and restarted HyperSnap. But HyperSnap still doesn't write any file there, nor does the tick in the checkbox stay.  
     
     Jan
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/27 07:40:50 (permalink)
    0
    I am using a function practically identical to Microsoft sample at https://docs.microsoft.com/en-us/windows/desktop/shell/links, under the "Using Shell Links" - the CreateLink() function there. I don't see how could I do anything differently. Maybe you have some strict security settings on your computers that prevent apps from creating shortcuts? Guess the only thing I could do would be to display an error message when any call on psl-> or ppf-> pointer fails there, so that we would know which function failed, and maybe query further the system for the error code and message... Let me know if you want a build with more error messages being displayed from the CreateLink() function.
     
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/29 10:26:05 (permalink)
    0
    I will do another test, trying to leave out our customizations.  
     
    Looking at my procmon traces, it seems like there is a problem creating some files (My picture folder, and Startup folder). 
    I will try to reduce the data, and may be able to provide the trace or some screenshots by PM. I don't want to publish some of the data on the internet. 
     
     
     
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/29 13:57:24 (permalink)
    0
    You can email me directly instead of posting here, but if there are errors related to security settings on your devices, I would not be able to help. It's a matter to resolve by system administrators on your network...
     
    Greg
    Jump to:
    © 2018 APG vNext Commercial Version 5.1