diff --git a/BlockTheSpot/BlockTheSpot.csproj b/BlockTheSpot/BlockTheSpot.csproj
index 0840926..ebb0c47 100644
--- a/BlockTheSpot/BlockTheSpot.csproj
+++ b/BlockTheSpot/BlockTheSpot.csproj
@@ -29,7 +29,7 @@
https://github.com/bitasuperactive/BlockTheSpot-C-Sharp/
BlockTheSpot-C-Sharp
bitasuperactive
- 35
+ 36
2.2.0.%2a
false
true
diff --git a/BlockTheSpot/Form1.cs b/BlockTheSpot/Form1.cs
index 3332bbf..83e6538 100644
--- a/BlockTheSpot/Form1.cs
+++ b/BlockTheSpot/Form1.cs
@@ -50,8 +50,8 @@ public partial class BlockTheSpot : Form
///
public BlockTheSpot()
{
- CheckIfAlreadyRunning();
InitializeComponent();
+ CheckIfAlreadyRunning();
}
@@ -544,8 +544,8 @@ private void DownloadCompleted()
this.toolTip.SetToolTip(this.outputLabel, "");
}
///
- /// Maneja el control de acceso para el directorio "Update" de Spotify,
- /// permitiéndo o negando los permisos de escritura y eliminación.
+ /// Maneja el control de acceso para el directorio "Update" de Spotify, el cual crea si no existe,
+ /// permitiéndo o negando todos los permisos de acceso.
///
/// Tipo de acceso a implementar (permitir/denegar).
private void FileSecurity(AccessControlType controlType)
@@ -562,7 +562,7 @@ private void FileSecurity(AccessControlType controlType)
foreach (FileSystemAccessRule rule in dirSecurity.GetAccessRules(true, true, typeof(NTAccount)))
dirSecurity.RemoveAccessRule(rule);
- dirSecurity.AddAccessRule(new FileSystemAccessRule(WindowsIdentity.GetCurrent().Name, FileSystemRights.Write | FileSystemRights.Delete, controlType));
+ dirSecurity.AddAccessRule(new FileSystemAccessRule(WindowsIdentity.GetCurrent().Name, FileSystemRights.FullControl, controlType));
Directory.SetAccessControl(dir, dirSecurity);
}