Skip to content

Commit

Permalink
updated newest working version
Browse files Browse the repository at this point in the history
  • Loading branch information
sandytsang committed Oct 18, 2020
1 parent 7081dda commit ba3de11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions SourcePackage/Deploy-Application.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ Try {

#Remove old installed Idle Notification
Get-Process "SCConfigMgr Idle Notification" -ErrorAction SilentlyContinue | stop-process -force
Get-Process "IdleNotification" -ErrorAction SilentlyContinue | stop-process -force

# Remove any previous versions of SCConfigMgr Idel Notification
Remove-MSIApplications -Name 'IdleNotification'

Remove-Item -Path "C:\Program Files\SCConfigMgr Idle Notification" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Program Files (x86)\SCConfigMgr Idle Notification" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Program Files\IdleNotification" -Recurse -Force -ErrorAction SilentlyContinue

New-Item -Path "C:\Program Files" -Name "IdleNotification" -ItemType "Directory" -Force

Expand Down
Binary file modified SourcePackage/Files/IdleNotification/IdleNotification.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions SourcePackage/Files/IdleNotification/settings.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<settings>
<TITLE>Your title</TITLE>
<TITLE>SCConfigMgr</TITLE>
<STARTTIMEMINUTES>0</STARTTIMEMINUTES>
<DURATIONMINUTES>1440</DURATIONMINUTES>
<IMAGEFILE>logo.jpg</IMAGEFILE>
<IDLETIMEMINUTES>5</IDLETIMEMINUTES>
<IDLETIMEMINUTES>1</IDLETIMEMINUTES>
<BODYTEXT>This computer has not been used for 5 minutes, you will be logged off soon. if you wish to continue use it, please click 'OK'</BODYTEXT>
<COUNTDOWNMINUTES>1</COUNTDOWNMINUTES>
<DEADLINETEXT>Log off time</DEADLINETEXT>
<DOACTION>shutdown.exe /l /f</DOACTION>
<DOACTION>shutdown /l /f</DOACTION>
<DETECTLOCK>False</DETECTLOCK>
<DETECTSLIDESHOW>False</DETECTSLIDESHOW>
<PROCESS>
Expand Down

0 comments on commit ba3de11

Please sign in to comment.