Forums - C# Corner

Forum guidelines
erum mirza

erum mirza

  • 0
  • 100
  • 0

Windows registeries

May 8 2013 8:48 AM
 i have following small line of code

RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",true);
rkApp.SetValue(
"MyApp1", "C:\\WINDOWS\\myexe");


now when i run code in c# (desktop application ) it make changes in registeries and .exe run when system start ..but the problem is whne i make setup and deploymemt of same code and deploy on server ..and install desktop application on server ..it does not make any entries .. any help
do let me know when further EXPLANATION is required ...

let me share one more thing the same issue ocurring via setup/deployment on my machine ..I mean via an exe it creating problem on my machine too ..but whne i make entries via code its work FINE ..



Unlimited Flat-Free License

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!