Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have software that should change the desktop background and change the mouse icon, the software works like this, it downloads the two files, (PNG & CUR) creates a folder, puts the two files into a folder.

The software itself works great for me, but today I tested the software on one of the computers in a school and it didn't work properly, after restart, the mouse didn't changed and the background changed to black.
The folder itself was created on the computer and there were both files, but when I opened the image file it said "Unsupported format" and the mouse file could not open at all.

Anyone have any ideas why it doesn't work?

Can you identify something here incorrectly?

Here is the code - https://prnt.sc/psszt9[^]

What I have tried:

I haven't tried anything yet, the program created yesterday
Posted
Updated 5-Nov-19 5:45am
Comments
Richard MacCutchan 5-Nov-19 12:00pm    
I did warn you that messing with the registry is not a good idea.

0) Nobody here is going to go to an unknown website to look at your code.

1) My guess is that the file somehow got corrupted during the "download" process.

2) You can place the files in "the folder", and see if your program will open them.
 
Share this answer
 
Comments
[no name] 5-Nov-19 10:47am    
1. Unknown website ? its "Lightshot" website, please check it.
2. The file in my computer is downloading successfully without any problem.
3. my program is placing the files in the folder and i don't need to open them with code, i just can open it normally. and its still not working.

Do you have any suggestions please ?
#realJSOP 5-Nov-19 14:57pm    
0) Again, "Lightshot" is unknown. If you want us to look at your code, post the appropriate snippet in your question (NOT the entire app).

1) Well, what's different between YOUR system, and the "other system"? The key here is that WE DON'T KNOW THE ANSWER TO THIS QUESTION.

2) No, I meant to put them in the appropriate folder on the "other system". If your code is written correctly, it won't try to download the files again if they're present, and your app should go ahead and work.

3) BTW, your app should be downloading the files into the user's My Documents folder, and in a sub-folder specific to your application.

4) Try displaying the actual exception and stack trace so you can go back to your system and find the error.

5) Be a f*ckin programmer, and figure it out.
[no name] 5-Nov-19 15:00pm    
3 - It already does it, my program creates a folder in the user "Documents" that called WastedBit, and relaxxxx i already fix it.
#realJSOP 5-Nov-19 17:04pm    
3) How are we supposed to know that? You never once mentioned it. And I think you know what you can do with your "relaxxxx". Sideways.
OriginalGriff 5-Nov-19 11:07am    
:thumbsup:
Quote:
1. Unknown website ? its "Lightshot" website, please check it.
2. The file in my computer is downloading successfully without any problem.
3. my program is placing the files in the folder and i don't need to open them with code, i just can open it normally. and its still not working.

1) Link shorteners are not a good idea here: very few people will follow them - myself included. I'm with JSOP on this one: that's an "unknown link" and I'm not going near it. You want us to look at your code, copy and paste teh relevant code fragments into your question and format them with the code widget:
C#
void MyMethod(int myParameter)
   {
   if (myParameter > aValue)
      {
      DoSomething();
      }
   }

2) How do you know? What have you tried to check it?
3) Which implies that either the environment is different - and we can't check that as we have no access to either system - or the files are corrupt.

Since we can't access the files, can't access the systems, and won't access suspicious sites, there really isn't a lot we can do to help at this stage...
 
Share this answer
 
A common scenario is that that the app hasnt the rights to change it or it some different flavors or languages of windows. I guess that the pathes dont match correctly.

tip: Try to start as admin.

pro tip: add some protocol file writing functions in the app, mostly in creation of the file pathes.
 
Share this answer
 
Comments
[no name] 5-Nov-19 11:49am    
My program is always must to run as administrator, i set it on the project settings. and i don't understand the pro tip, all i can say you is that my program is downloading the file using the path.

Thanks
St0rmi 5-Nov-19 12:42pm    
Are you able to change cursor and background on the School Computer manually? If not, check GPO.
[no name] 5-Nov-19 12:50pm    
Yes i able, and i think that the problem is that i'm using HKEY_CURRENT_USER and not HKEY_LOCAL_MACHINE, do you think it is the problem ?
St0rmi 5-Nov-19 13:01pm    
Just try to change the values manually via regedit and you know
[no name] 5-Nov-19 13:02pm    
tomorrow, in my country its 8am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900