diff --git a/apps/calendar/appinfo/install.php b/apps/calendar/appinfo/install.php
index c5a9a72f26f5544d3aeb4c2f3d7da26f73250b5a..fc5cd892394e68804ad6391eeee8abd5d95987d6 100644
--- a/apps/calendar/appinfo/install.php
+++ b/apps/calendar/appinfo/install.php
@@ -1,4 +1,4 @@
 <?php
 if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
-	file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPROOT . '/apps/calendar/appinfo/remote.php'));
-}
\ No newline at end of file
+	file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
+}
diff --git a/apps/contacts/appinfo/install.php b/apps/contacts/appinfo/install.php
index b87241b2db1345c6073737f449064cba14de1b82..172ace5b1a69a3e2c696ea872bc6bfb92bdea065 100644
--- a/apps/contacts/appinfo/install.php
+++ b/apps/contacts/appinfo/install.php
@@ -1,4 +1,4 @@
 <?php
 if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
-	file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPROOT . '/apps/contacts/appinfo/remote.php'));
-}
\ No newline at end of file
+	file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
+}
diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php
index d00a1a321eb676edcef12f32e2e779dae44b0205..8c1430900ae9e60e8a0b92315b2a96bcc1d76478 100644
--- a/apps/files/appinfo/install.php
+++ b/apps/files/appinfo/install.php
@@ -1,4 +1,4 @@
 <?php
 if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){
-	file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPROOT . '/apps/files/appinfo/webdav.php'));
-}
\ No newline at end of file
+	file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
+}